Plan b

I ovulate in 2 days and I had sex 2 days before ovulation and my bf came inside me if I take a plan b will it work? Like does plan b always work?