Painful period or miscarriage

Hi there, my period this time has been more painful to the point it hurts to stand or walk and I’m having to take deeper breaths to help calm it down. Could this be mistaken as an early miscarriage?. Would a pregnancy test show it?