depo and sex

I got my first depo shot after my second baby when she was 7 weeks the same day I got my shot I had unprotected sex & I didn’t get my period last month when I was suppose to I’m wondering is it because I got the shot I know it stops your period but with my son it took long than just one shot.