Only few headaches like migraine can be hereditary.