Help please

So me and boyfriend has sex the same day I stoped bleeding (period) and he pulled out but it was like half in half out? I went for a pee and wiped straight after what’s the chances of pregnancy?

Can I still take plan b it was 4-5 days ago