It’s not a good idea to take a laxative when you have a hernia unless a doctor approves it. If you have bowel obstruction, stool may not be able to pass through your gastrointestinal tract.