It is possible that you may have an infection, I would advise you to do a urine routine examination and semen examination to find the underlying cause of the infection and have it treated accordingly. If the condition persists or worsens visit the urologist at the earliest.
Next Steps
Follow the steps as advised
Health Tips
If condition persists or worsens visit the ER at the earliest