Are hernias inherited?

Some are. Hernias develop due to weak points in the abdominal wall. Many of these form as "birth defects" during fetal life without any clear hereditary component. Others may develop due to an inherited weakness in the way collagen crosslinks. Still others may form following trauma such as a surgical incision.
No. Not that i know of. I'm 51 yrs old and no hernias so far. Dad has had 2, my brother one. Sister good and i'm good too ! check back with me later, in case karma bites me in the inguinal canal later...