sex question

What happens whenever you start your period and then your boyfriend bust inside and then you take a plan b ?