My mom beat me all the time but I never remembered any of the beatings.
It didn't curb any of my bad behavior. The only thing that was effective in instilling values in me vis-a-vis my mother was her adult criticism of my life trajectory, she was honest in telling me that whatever I was doing was leading me to become a loser, and that stuck with me.