helppppp

i have a uti, if i have sex can i have my boyfriend one? i’ve heard it’s contagious yet i also heard it isn’t. i forgot to ask my doctor when i was there UGH.