Nexplanon

I got nexplanon inserted 3 days ago while I was on my period. How long do I have to wait until it takes affect so I don’t get pregnant?