Scared

I was having sex and then out of no where I start bleeding and so I went to go pee and a quarter size piece of flash color piece came out. And now I am bleeding out of control and the cramps are out of this world painful. Am I having a miscarriage