Is this a miscarriage?

So I haven't had my period in 2 months but that's sometimes normal for me. I didn't suspect I was pregnant or anything because my husband and I have been ttc for 8 years...then I started getting really bad pains in my stomach and this came out. Is it a miscarriage?