Very confused

Rachael

So I am on my first shot of depo provera and I got the shot March 7th and I had sex with my boyfriend March 30th and 31st and he came inside of me. I was having a very light period and or breakthrough spotting from the shot this week and while I had sex with him. I'm just wondering if I'm okay and protected from not getting pregnant considering I was on the shot for almost a month and was bleeding