Condom was accidentally dislodged when released

yesterday i had sex with my bf using condom, then he came inside me (still using condom). i think he was already flexed when he pull out his penis from my V. his penis was pulled out but the condom was still there hanging. the condom’s edge was outside my V, but i’m still shocked. is it safe??? i dont want an unwanted pregnancy. i had my period on June 3, so the pregnancy risk was just about 1% yesterday.

should i be worried??? please somebody answer me, i need opinions... :(