Condom got stuck inside me!!

When me & my boyfriend last had sex the condom somehow came off & it was stuck inside me! He managed to get it out but I wondered is there any chance you could get pregnant from this happening? I did take the morning after pill just to be safe but was shocked & a tad embarrassed about the whole situation ...