No condom

So I just had sex with a guy I'm recently dating on Christmas <a href="https://play.google.com/store/apps/details?id=com.glow.android.eve">Eve</a>. We didn't use protection and he pulled out before he finished. I wasn't sure about taking the plan b pill and I just bought it today; 3 days after. Also that day was my last fertile day so that's why I was kind of freaking out. It should still work right?