No. A few rare things might simultaneously cause sight changes during yelling but these are very unlikely. This sound more like a manipulative aspect of your teacher to get you or your classmates to behave under the threat of her being harmed if she has to yell.