This is patently absurd. The melanin in a persons skin, or, for that matter, the epithelium in their eyes, are not the body parts which govern cognition. Only the brain does that.
This means that what and how a person has learned is of primary importance. The learning environment and, by extension, the entire social milieu, not genetics, is the major factor in determining behavior.