If you are sexually active, your sex partner needs to see a doctor as well. This is because sex can sometimes spread the infection that causes this condition. If the infection is from an STI (sexually transmitted infection), the infection will likely spread through sexual contact. You should not have sex until the symptoms are gone, the antibiotics are finished, and your partner has been checked and treated by a doctor. If the infection is from bacteria in the urinary tract, you are less likely to pass it on to someone else.