Yes. Balanitis can cause erectile dysfunction ( a condition when a man cannot get or maintain the firm erection required for sexual intercourse). During an erection, the pain due to an inflamed foreskin aggravates, which may impair your erection leading to erectile dysfunction.