Can you have sex with a UTI?
While it’s not an absolute contraindication, avoiding anything that could irritate or chafe the urethra is probably a good idea so avoiding sex for a few days typical makes sense.
A contraindication is a procedure that doctors advise against based on evidence that it may cause harm to the patient.