There's better ways for children to understand something is wrong. Associative learning doesn't need the punishment to be physical, rather some other consequence that doesn't directly harm the child, e.g. taking away rights/privileges. "Hitting" is quite subjective, if you're lightly punching or...