Bob was playing cards with Adam and was way ahead. If Adam hadn't had a sudden run of good luck, *he* would have won.

Are "he" and "Bob" the same thing in the aforementioned sentence?
yes