Exactly.  Religious fundamentalist Dr. Dobson will tell that corporal punishment is how to "train" a child, and begin it in infancy.

But children are not dogs.  We need them to learn how to THINK.  And obey by their own volition by means of critical thought. That creates wisdom.