in a sue happy country, i think not. (im assuming you are in one.) (if your below the legal age (ok i dont know what the hell they call this anymore) of being punished, then this doesnt matter.)
And punching a teacher is never a good idea unless of course there's extreme circumstances or theres something you can use to keep there mouth shut(aka them attacking first, attempted rape something like that) else be prepared to fail that class (if the teachers in a good mood) or be expelled if you do.
To be quite honest its never a good idea to hit some unless under extreme circumstances, or you know they wont go crying to the authorities because they lost a fight and want to get you done under assault, teachers are no exception.
if you really want to do something to someone do it 'accidentally', for example i once slammed a door on a teachers face, this was due to him being a pedo.
unfortunately he wasn't convicted of it but i know for a fact that some of the alligations were true, don't ask how.
or go for a childish trap... there humiliating, cheep and easy to get away with if there's no cameras, for a low key example tie a rape alarm on their office door before they goes out, barrel of laughs, and they get shocked to hell and well other effects ensue, like there colleges asking what the hell is going on, and if there familiar with rape alarms checking said teachers office.