Question, can a UTI cause bleeding?

Joan

so I have a question I went to the Er Tuesday for light spotting due to me being a high risk pregnancy, they did an ultra sound embryo was spotted (very small), the Dr then came in and said they were discharging me with anti biotic for a UTI and THREATENED MISSCARRIAGE, I've been spotting since I go in today for a hcg count, still feel pregnant some what. has anyone had this and baby be fine?

oh and the spotting was red but not heavy enough to fill a pad. I'm so nervous that ill get the bad news.