Might have miscarried

I thought I was pregnant. I never found out if I was or not but if I was it was only 3 or 4 weeks along. I had very bad cramps two days before bleeding and when I was bleeding something rubbery/spongy feeling was in my blood and then I stopped bleeding. Was this a miscarriage?