Can spanking a child ever have beneficial results?

Can spanking a child ever have beneficial results?