Yes. There is a limit to spanking and BEATING your child though. My daughter had one good fall out at the store. I left my stuff in the cart, grabbed her and went home, AFTER I popped her butt one good time. That was the end of that.
But it also depends on the child. I can tell my child to knock it off, and she knows to stop. I try to use spanking as a last resort, but that might not work for every child. I've seen PLENTY of children lose their minds simply b/c the parent is too embarassed to do anything in the store. Forget that. But whatever works for you and your child ...