Absolutely. A high-fiber diet can prevent constipation, reducing strain during bowel movements, which can exacerbate a hernia. Staying hydrated and maintaining a healthy weight are also crucial.