Question

my period ended tuesday and my bf just cummed in me, if i take a plan b will it work?