(Pro 26:3 KJV) A whip for the horse, a bridle for the ass, and a rod for the fool's back.
You may have heard the saying, “Spare the rod and spoil the child”. Those into Montessori will be glad to know that this is not in the Bible. Those who are into the Bible will know that the sentiment is, even if the exact phrase is not The Bible endorses corporal punishment. The “rod” (7626) is not there just for looks. It is to be used for discipline.
At the same time it is not to be overused. The point is the discipline. If you can enforce it using other methods, then feel free. It is also clear that some people only learn through pain. I know that kicking rocks teaches me to watch where I am walking and bumping my head teaches me to duck.
So? Who are you going to believe, Dr. Spock or God almighty?