It's really even deeper than that, though. Even having the chance to apply yourself involves a lot of luck. Many people simply don't have the mental capacity to go to Princeton, through nothing they ever did except being born to parents with certain genetics. Many others are born with outstanding abilities that no one ever knows about because they had the misfortune to be born in sub-Saharan Africa.
By all means, be proud of the work you put in to your success. But acting like the rest of the world had nothing to do with it won't make you many friends.