Could I be pregnant?

So I had sex yesterday and he pulled out but the condom came off and was inside me 😅 I thought I was done with my period but I guess I wasn’t because the next day I was spotting...then today I was feeling sick, and having a headache but I don’t know if it’s just me overthinking or something?

Should I take a pregnancy test just to be sure? 😅🤔