Uti and sex

Can you have sex even if you have a UTI?? I’m on medication the symptoms are gone it’s my third day with it