Doctors usually recommend avoiding sex until a urinary tract infection (UTI) has cleared up completely. Having sex may irritate the urinary tract and can push more bacteria into the urethra, worsening ...