I'm pretty sure that anyone could learn to code. However you need an atypical mind (not superior, just different) to truly excel at it. I'm not sure if that comes about due to nature or due to nurture, but both could be out of reach of adults depending on which developmental theories you subscribe to.