It’s possible but I don’t really buy it. There’s a very real sense in which narcissism is just a lack of acquired skills that most people have. That skill being the ability to see both the good things and the bad things about yourself and about others at the same time. If you’re raised in an environment where your caretaker teaches you they are always right (with severe consequences for pointing out they aren’t) then it is hard to develop a nuanced worldview. The child can either get on board with the parent, become “one of the good ones” and become a narcissist themselves or they can become a black sheep of the family, usually with worse outcomes.
Importantly, the skills can be learned as an adult it’s just hard to do. I come from a long lineage of family members who did not know how to swim, but I don’t think that there’s a genetic basis for this.