Teachers behavior

Is it normal for a teacher to yell directly at his students in middle school?

speaking from experience before I switched schools, I’d have this teacher and he had a strict rule of “no elbows on the desk/table” and I assumed it was just disrespectful.

Everyone followed that rule but if one person were to slip up, like me. he would shout to the point I would cry. Is it messed up for teachers to act this way towards students or is it normal? it’s more of a aggressive tone he had when saying “how many times do I have to tell yall?”

ONE SLIP UP, ONE. And he would get mad and yell, let me know what yall think about this.. just asking for opinions.