Possible miscarriage?

I had sex and got my period I thought I was fine but the first night other my period I got horrible cramps that is never get it was a heavy period. is it possible that is could have miscarried?