Depends on what you did
No! That’s too unprofessional.Can my boss yell at me?
Yes, but it is rude and unprofessional. Not to mention, childish. If you made a mistake, the responsible and mature thing to do is make it clear you made a mistake and explain how you can do better next time. If this is really bugging you, tell him.Is my boss in love with me?