Miscarriage?

My period came 4 days early, and I had extremely heavy bleeding and cramps so bad I almost had my boyfriend take me to the emergency room. I couldn't stand, talk, and I couldn't stop crying and squirming around from the pain. Could this have been a super early miscarriage?