Hello, Anon. Thank you for posting.
You cannot get pregnant from what you did. You said yourself you are a virgin. For all intents and purposes, there is a risk of pregnancy when a woman has unprotected sexual intercourse with ejaculation that enters the vagina.
Anon, did you have sex education at school? If not, it's a good idea to study on your own so you know how sex and the human body works. You can read books on the subject or search our EmpowHER site. This will eliminate a lot of stress than the unknown can cause.