A 2016 study of hernia mesh patients looked at sex after surgery. They found that the quality of their sex lives improved compared to before surgery. Patients may be able to engage in sexual activity as soon as they feel no severe pain. But they should ask their doctor when they can resume sexual activity.