unprotected sex

four days ago my boyfriend and i were getting intimate and he came in me by accident.. i took a plan b 20 minutes later and today i see i have brown spotting. could i be pregnant? im also supposed to be getting my period soon so i don’t know. i would appreciate any help.