Can I yell at two people in my class group to stfu?
Why do you want to say that to them?
They are so annoying I had to yell at them once before.
While it is frustrating when people are loud in class, you can find another way to tell them to be quiet or get the teacher involved.
I don't want to talk to the teacher and make a big deal it's okay as long as they are quiet.
Okay but if it doesn't work to get a  hold of the teacher instead of asking them again. It is understandable that you want to be able to listen in class.