Yes, myopia can have a genetic component, meaning that it can run in families. If one or both parents have myopia, there is an increased risk that their children may develop the condition as well.