So after learning not to hurt others, do you have impulses to do so? Before you learned not to hurt others, did you act on those impulses? Do you even remember?
information is constantly being checked against previous learned experiences, when your mother told you it was not okay to hit someone this became one of those experiences. it isn't some magical "willpower" or "free will"