Is my roommate wrong for doing this?

So I left for class because I had a big bio midterm and my roommate wasn’t in the room as well. I guess during my exam she texted me, I didn’t see it until I got done, and she told me that she was going to class but this guy that she’s talking to is going to stay alone in our room for the time being. She didn’t ask me if it was okay or not but I feel uncomfortable letting someone stay alone in our room that’s not theirs. Was she wrong for doing this? I’m in a college dorm by the way. He doesn’t live in our dorm tower.