Like almost any personality disorder or mental health issue that results in aberrent behavior, “proper” behavior can be learned, taught.

For many Machiavellians, their empathy can be learned, and seems real. The more intelligent the patient, the more remarkable the High Mach performs in ‘parroting’ proper behavior.
This article is included in it’s entirety with full attribution and comes from https://www.sciencedirect.com/topics/psychology/machiavellianism