After a life time of watching bullies, I don't think getting their butt wiped teaches them not to bully- It just teaches them to be more careful of who they pick on.
One example, a guy I went to high school with got the ultimate butt whipping in basic training, a blanket party- It only made him more bitter, still bullied, just was more careful about who he bullied.
Another guy, about the same deal, just never would pick on someone that would give him a fair fight.