Do "the detective" and "he" point to the same thing in the following sentence?

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