Yes, his entire family was rich and his parents were well connected (when most people tell the story they leave out "Bill Gates got the call from IBM because his mother was on their board")
Yes he got unbelievably lucky (so much so that he turned down IBM, sent them to the makers of QDOS, and still made the deal after QDOS blew it)
and Yes, he's not a great hacker (he's smart and knows enough about technology but the couple Gen 1 Microsoft employees I've met say he can't code worth a darn)
But even with all that he would have failed if not for his keen business insight and technical accumen. I guess you need both luck and skill to become the richest man in the world (but I'm betting skill can still get you pretty rich)