Sex with a UTI?

Can you have sex if you have a UTI?