Was it at all ecceptable for this teacher to yell at this student?

When i was in highschool, like 13 years ago. This student came in late. He was kind of known for being a troublemaker. The teacher was giving a lecture, and the student was talking to his friends. The teacher went off, and started yelling at the student, and told him to get out of the classroom. I was on the teachers side all these years, but lately I've been thinking. It did make me slightly hesitant to ever ask the teacher for help with anything, because frankly, I was kind of afraid of him after his outburst, and it's possible other students that witnessed it felt the same. What do you think?

Was it at all ecceptable for this teacher to yell at this student?
Post Opinion