Did I miscarry early or am I just having a period with pregnancy?

Ive had two positive pregnancy test but last night I got extreme bad back pain with cramping and then I bled till morning. Now it's mostly spotting but my back still aches with cramps. Is it possible to still be pregnant or no?