Hello, Anon. Thank you for your message.
Have you had sex education in school? If not, you can study on your own. Our EmpowHER site is a good resource or you can read books on the subject. Intercourse is when you have sex with a penis in your vagina. To get pregnant, sperm (from a male's penis) has to travel up your vaginal canal and meet an egg. The highest chance of this happening is during ovulation.
So, you cannot get pregnant from what you did.