Help me i am worried abot my future

Patient: I am 21 year old, and i am a virgin. few days ago, my boyfriend and I were fooling around. We did try and he did put the tip of his penis on my vagina and pressed and kind of grinding but it did not go in. we were both naked. but, he did not cum.he says 100% sure he did nt cum and i don’t think there was any pre-cum. There was no ejaculation. but i am worried if there might be a chance so on that day at night after dinner i take a pill unwanted 72…pls help us