
Yes, in most cases a supervisor or manager can legally yell at an employee. Federal law has no general civility rule, so yelling alone is usually lawful. Yelling becomes unlawful harassment when it targets someone because of a protected characteristic, such as race, sex, age, or disability, and is serious or frequent enough to create a hostile work environment.
Lawful and acceptable are separate questions. A supervisor who yells can still break your conduct policy, frighten the team, or push a good employee out the door.
If you manage the person who yelled, respond to this complaint well, then give that supervisor a better way to handle pressure.