Depends on the situation. Sometimes pain is the only way kids learn. Regular discipline such as ; corner standing, timeouts, grounding dont teach lessons. The kid will 9 times out of 10 do the same thing knowing they'll be free in 15 minutes.
spanking/ass beatings teach respect, fear, and a lesson that if you dont want to feel it again, dont repeat the same shit.
Thats just my take on it. I've been beat and I came up right. Ny friends who haven't curse out their parents. Call them all kinds of names smh. Disrespectful