Sex with a UTI?

Erin
I have a UTI I'm not sure what kind. Long story short I was at the ER I'm 18 weeks pregnant and have some UTI but unknown what kind!
Can I have sex and it be safe for my partner and me?