Yes. In most cases, it is possible to erradicate it by means of antibiotics. The type of antibiotics to administer is dependent on the pathogen causing the infection.
When there is no infection, and the only symptom is an inflammation, painkillers may be enough.
Suggested for you: Leukocytospermia or Pyospermia – Symptoms, Causes & Treatment.