If your period is late, then take a pregnancy test. If it is negative, test again in several more days to a week. If still negative, you can test again in another week, or see your doctor if you are concerned.
Spotting between periods could mean absolutely nothing, or it could be a hormonal problem or an infection. You should see your doctor if it continues, regardless if you are pregnant or not.