Does having a hernia run in families?

Somewhat. Hernias are more common in males, and there can be a hereditary type condition in which some men inherit collagen fibers are weaker or more likely to form hernias.