Plan B pill taken while ovulation(advice needed)

I recently had unprotected sex twice yesterday and he came inside of me both times. The first time we did it(around 4am) we just went directly to sleep. But later on that morning(around 9am)we did it again but went to get the plan B pill and I took it. Once I got home to record that I had sex in my <a href="https://play.google.com/store/apps/details?id=com.glow.android.eve">period app</a>. I realized that I started ovulation two days ago. I am just curious to know whether or not taking the plan B pill will still be effective to prevent me from getting pregnant?