In a very adult not, in adolescence it is possible. Even in the presence of "good" inclinations with competent psychotherapy in childhood or a very favorable social environment, you can level them out by growing from a child, albeit not quite normative, but only a little asocial. But a mature personality in adulthood without any aggravating circumstances (neuroinfection, head injury, etc.) suddenly does not become sociopathic
If there is a predisposition of the nervous system and psyche, then a strong psychotrauma can push an adult to psychosis in a sociopathic manner. If there are no predispositions, then theoretically damage to certain parts of the central nervous system can cause sociopathy in an adult, but external damage of this kind will be incompatible with life, and tumors and infections will, if not lethal, then extremely fraught.
But apart from isolated exceptional cases, sociopathy is either a congenital disease, or the result of a child's life up to a certain age in a very specifically aggressive family environment, or a combination of the first and the second.