Pregnancy test

I stopped my BC in the middle of the pack because I was experiencing some slight side effects and I did spot for about 3 days. I had sex after I stopped my BC but a condom was used and I want to take a pregnancy test just to make sure I'm all good. Can I take one now and will it be accurate even if I already spotted? Not sure when my period will be..