Messed up my birth control

I accidentally messed up my birth control. (I just switched from Nexplanon to nuvaring) And had unprotected sex one of the days glow said I was ovulating.. But had a ring in the day after I had unprotected sex. The birth control should prevent it right?