Can you take plan b while on the pill

I'm on the pill but my boyfriend usually also pulls out as well to double up on protection. But he finished in me this time and I just want to be extra safe. But will those two mix and make them ineffective? Can I take plan B while on the pill?