Freaking out someone please help

My boyfriend and I were having sex and I was on top and the condom slipped off and was inside me and my boyfriend and I got it out and we pulled it out by the base of the condom. I'm worried that some of it may have gotten in me so I took a plan b pill 26 hours after the accident. Should I be okay?