i really need answers 😭

ok so i’ve been on the birth control shot before and i got off of it in november. i started getting my period in march twice a month . i got back on the shot recently on may 7th i had my first period this month on may 1st and it went off on may 5th (estimate). i had sex with my boyfriend and he came inside of me last night. my question is, did my birth control start working immediately because i’ve had it before? or is there a possibility that this could get me pregnant?