Plan b

I'm not trying to conceive and I had sex with one of my friends and he came when he took off the condom by my vagina. And I'm scared the cum went inside of me. Is there any way besides plan b to prevent pregnancy?