You should visit a doctor if you have penis pain, no matter what the cause may be. There are numerous causes of penile pain, including STIs, phimosis, and priapism (prolonged, painful erections), among many others. Treatments for penis pain vary depending on the cause, but can often reduce the pain, and address the problem.