Ancient DNA can both diminish and defend modern minds

You’ve likely heard about being in the right place at the wrong time, but what about having the right genes in the wrong environment? In other words, could a genetic mutation (or allele) that puts populations at risk for illnesses in one environmental setting manifest itself in positive ways in a different setting?