When is mirena effective

Ka

I got the mirena IUD inserted yesterday (19th) and my doctor said it was effective immediately. I started my period exactly a week before that. So the 12. I was still in the 7 day window but how true is that? Just worries me I was so close to being out of that window.