While there may be a genetic component to narcissism, it is primarily shaped by environmental factors and upbringing. Narcissistic behavior can be learned or modeled from parents or caregivers who exhibit narcissistic traits. However, not all children of narcissistic parents develop narcissistic traits themselves.