If your prostate is enlarged, you may have pain when you ejaculate.4It's also possible that an infected pocket called an abscess can form on the penis. Any of these growths can cause pain when you're having sex or ejaculating. Priapism Most of the time, erections go away after sex. ...