I don't think so. Maybe 20-50% of people can learn to be decent at programming. Maybe less than 10% can be really good. The simple fact that you're on this website makes me think you can probably learn if you put in the effort.
Counterpoint, I've been on this site for over a decade now and am not a good programmer. But yes, I guess effort, experience, talent, and luck are the best cocktail for a really good programmer.
Not everybody on this site would make a good programmer but if I picked a random person here I would have better results than if I picked a random person from the rest of the population. Choosing to spend personal time somewhere like here indicates a few personality traits.