Miscarriage?

Honestly had thought maybe I could be pregnant but was waaay too early in the month to test or even tell and dismissed it then this morning I woke up in a puddle of blood and tonight I went to change over my tampon to find this attached. I'm shocked and scared.