Jim comforted Kevin because *he* was so upset.

Are "Kevin" and "he" the same entity?
yes