Depo after 7 days of period rather than 5

I was told I had to get the depo shot within 5 days of my next period. I was only able to get it 2 days later at 7 days afterwards. It's my first depo shot ever. I'm sure it's okay, but does it do anything to its affectiveness?