help with period concerns

my boyfriend and I had sex several times without protection and though he never finished inside of me, we thought plan B was a good idea just to be safe. Now it’s about time for my period give or take a few days and I’m spotting a dark brown very occasionally and I’m a bit worried. Is this because of the pill or could this be something else? Any help would be appreciated.