Condom came off inside me.

My boyfriend and I are both 18 years old, I’m new to this so he’s the one that took my virginity. Last night we were having sex, and he noticed it came off. He said he didn’t cum yet. We couldn’t find it, it wasn’t in the bed or anything and we found it inside me. I’m usually good with protection I’m about to get the pill. But this has rocked my boat, what if....