Joe paid the detective after *he* received the final report on the case.

Are "the detective" and "he" the same entity?
no