Extraversion/Introversion is one of the big five personality traits and is ~50% heritable:
https://en.wikipedia.org/wiki/Big_Five_personality_traits#He...
That's not to say introversion/extraversion wouldn't manifest differently in different contexts, but the trait does exist (as much as any personality trait does) and appears to have a large genetic component to it.