While there is a genetic component to MS, it is not directly inherited. Having a family member with MS may increase your risk, but it does not guarantee that you will develop the condition.