There has to be balance. In Proverbs the bible says something like,"Foolishness is in the heart of a child and the rod of correction will drive it far from him." A great Presbyterian preacher of bygone days, Donald Gray Barnhouse, said,"If you let your child express himself you will have the same results as if you let your garden express itself. The hoe for the garden, the hoe handle for the child, figuratively speaking"
Not a popular viewpoint nowadays. I had two 'fathers'. One, if I started crying, would hit me until I stopped. This was a very distressing thing for me as a little kid. Made me very closed down in terms of showing emotion as a youngster and to this day. The other never hit me once my whole life. I don't think either approach was the 'right' one. Sometimes corporal punishment is recommended IMO but with restraint.