Help 9 week & scared!!!

T
I'm 9 weeks pregnant and have my first ultrasound this week. But I started off spotting brown then bleeding and having light cramps then a hour later clots came out! Am I having a miscarriage? I've read some woman bleed in early stages of pregnancy but idk if clots are normal! I'm not in sever pain but I'm worried I should go to the ER.