Spotting means period or pregnancy?

Pa

My period was supposed to come yesterday and since then I’ve had lower back pain and red spotting but I’m starting to worry. Should I test?