While regular exercise can strengthen muscles and reduce hernia risk, strenuous activities or improper form can increase intra-abdominal pressure and risk of hernia. Post-surgery, appropriate exercise can aid in recovery.