It is advisable to avoid having sex while you are suffering from balanitis. Sex can cause further irritation and aggravate your symptoms (pain, soreness, itching, ulceration, etc). However, having protected sex (through condoms) may protect your skin and reduce discomfort.