Is pus on the glans a sexually transmitted disease? Is it contagious?

Pus flowing from the glans may be a sexually transmitted disease. Until the cause is diagnosed, measures should be taken to prevent the spread of the disease as a sexually transmitted disease.