please help!

Please no negative comments, I'm at the age to be having sex(19) but was never taught on what can and cannot get you pregnant, (didn't have anyone to talk or look up to). So me and my SO were messing around and we decided to try anal. (Did not have sex, just foreplay) I was ontop and I was trying to get it in the right place lol. I don't think it rubbed up against my vagina, but if it did, could I get pregnant? I know this may be a stupid question but please help me. I am new to this, but trying to learn!