coughed up 1 inch blood clot

I felt like my throat was phlegmy so I spit coughed into a tissue and a 1 inch clot came up, followed by a thinner smaller clot. I've noticed for the last week or so my nose has had blood clots or hardened blood at times in it. Not sure if I should be alarmed or not. Any ideas what's going on here? Pa currently 35 weeks.