depo shot

I got my first shot on Feb.18 & didnt go get my second one on May.18 & my period came on on May.27th & ended June.1st, does the shot wear off since I had my period? I had sex the first day off my period, could I be pregnant?