Sorta, but it's more of the fact that he had, you know... God in his back pocket ... and Goliath didn't. God favored those who revered him in their actions, and David was one who praised God in nearly everything he was able to do... when you contrast to his predecessor on the throne, Saul, it's easy to see why God was on David's side. I could go into much more detail and pick out specific verses and such, but that's the gist of it. (Saul had also given him his armor and sword but David realized that it would only slow him down instead of giving him flexibility in range of motion.)
Goliath is the one who never had a chance... anyway, I hate to digress. Whoops.