HELP: PREGNANCY TESY

I have a friend who had sex 2 weeks ago and right now she's worried if she's pregnant. She's not sure if the guy actually got in or not. Is it necessary for her to take the pregnancy test? By the way,she's having irregular periods. Any help will do! Thanks.