Depo shot

I started the depo shot in January this year and forgot to get the next. I started it again last week. Was wondering if it will defiantly work again, or was the gap between the last one too big? I had sex twice this week without a condom and was a bit worried if the depo worked or not 😁😁