Yes, a girl can become pregnant the first time she has sex. Anytime a girl has vaginal sex with a guy, she is at risk of becoming pregnant. Even if a guy ejaculates outside of but near a girl's vagina or pulls out before he comes, a girl can get pregnant.
So you should surely take a pregnancy test and consult a gynecologist.