Sex while having a UTI

So my friend has a uti and was wondering if she should have sex while having a uti? She doesn’t have pain anymore when peeing and is feeling a lot better. Thanks!