What is the meaning of [Spare The Rod And Spoil The Child]

It is necessary to physically punish children in order to raise them right.