IUD and Plan B

So I just had sex 4 days after my iud was inserted. I have the mirena iud. My fwb finished inside me. Is it safe to take plan b? I've never taken it before but he's willing to buy it for me.