Yes and no.
I believe there is such a thing as talent. However, just talent won't get you that far. You need to have a passion for and enjoyment of what you're doing. If you hadn't been interested in coding or computers you probably wouldn't have gone for those extra textbooks and you wouldn't have scored as well as you did.
I guess in that sense maybe talent isn't the best word? Talent probably isn't the near magical ability to perfectly perform whatever specialty your talent falls within, but I do believe that some things come easier to some people than to others. Just like people have different personalities we have different way of relating to things and to me it seems reasonable that different people can be better than others at different things.
That doesn't mean that hard work isn't important, or even most important.
When observing the world (as I see it) I get a feeling that the "work" and "effort" parts are being hidden away and forgotten. What's celebrated is being smart, talented and beautiful - Americans seem to love to compliment others by how intelligent they are. Sure, being smart and intelligent and beautiful can get you far, especially when it comes to pop culture, but is it enough to make you stay at the top once you get there. I don't think so.
Oh, Svrt, you're so cute! I'm not sure how we Americans are perceived across the Atlantic, but I guarantee you that we don't compliment each other's intelligence. Oh, sure, "talent" and "beauty" are the Golden Tickets here, but the third Great American Virtue is "athletic." We view intellect with suspicion, because those elitist, over-educated types are just too smart for anyone else's good.
But, I digress on a float of sarcastic obnoxiousness.
I agree with Scribble. Talent is largely a myth, and Svrt, you actually danced around the real quality. It's passion that cannot be taught, and is absolutely required to excel. Passion is the fire that sends us to our worlds again and again, that sent Scribble to read more than that one textbook, that had Tolkien spend 40 years creating a language no one was guaranteed to ever see. And, no, world building will never be more important than writing, but passion will always rule us all.