Is there ever a need to hit your kid(s)?

I'd like to know what moms here think about corporal punishment. I'm totally against it and I think it's abuse, but when I discuss this with people, they ask me about scenarios where the kid is not relenting and keeps behaving badly.

So moms of Twox, is there ever a situation where hitting your child is okay? If not how do you handle a kid that is not well behaved? I'll probably have kids a few years down the line and I want to be a good mom and do the right thing.