Doctors generally ask patients to avoid having sex if they suffer from posthitis. Having sex in this condition can add to the pain and discomfort in the foreskin and may aggravate the condition. Additionally, it can also slow down the healing process. If you still wish to have sex while suffering from this condition, take your doctor’s advice first.