Worried

Selina
So I've been spotting for a few weeks now. Went to the hospital last week to have a 8 week scan. Doctor told me that spotting is common and that everything is OK with pregnancy. I just went to the bathroom and noticed a brown clot (sorry tmi) and really worried. Does clotting mean that I'm having a miscarriage?