It does sound like it could be prostatitis, and you should see your doctor. It could also be a pelvic floor issue, and maybe urethritis, though I'd expect other symptoms with urethritis, but a doctor can help sort that out.
It doesn't sound like a cancerous condition, but to be safe, don't wait any longer. You'll need a doctor to rule that out.