In principle, it can. I am an introvert, but in some situations I am still an extrovert, for example, at work, where you have to communicate with different people for a long time. In large groups of well-known old friends, I am also an extrovert.
Extra- and introversion are the basic properties of human temperament, described by Jung. They are innate in nature, it is impossible to change them, although you can learn to compensate for the shortcomings of each of the characteristics, becoming a more sociable and social introvert or a more reserved and focused extrovert.
The author of the question asked the question simple and complex at the same time. I will try to express my understanding. Usually, an extrovert is considered a person who is more sociable, mobile, cheerleader, easy-going, having many friends, prone to superficiality and promiscuity, etc. The introvert is the opposite. This quality can be determined only in behavior.
Thus, under extra- / introversion can hide a special type of personality, the pressure of the situation and other factors, including medical ones. Moreover, the situation may be of paramount importance. For example, one and the same person can behave completely differently in different situations: from stiffness to carelessness. Example: job interview and party with friends.
From the point of view of medicine, various disorders can be hidden under "introversion": social phobia, depression, etc. Also under "extraversion": cyclothymia, bar, etc. Therefore, after treatment, others notice how an introvert suddenly became an extrovert or vice versa.
I was a typical introvert, and now many people consider me an extrovert. But in difficult times, everything comes back. Many restrictions in communication can be removed or disassembled in working with a psychotherapist.
The ability to talk about your feelings, the ability to ask for help, the ability to hear your body and allow yourself to move spontaneously, the ability to defend yourself from other people's attacks, the ability to distinguish its part of the problem from someone else's - all this is perfectly trained in communication with someone who already knows and can do this.