Back pain

Lately I’ve been having a lot of back pains. My period is in 5 days I don’t remember getting them before though. Do you all get back pains when your period is coming or could it be that I’m pregnant?