Yes, there are definite indications that we get a glimpse of both Moriarty and Sherlock Holmes in this one. However, it's not at all complimentary to the latter: the hypothesis he puts forward proves to be wrong. And no one really ever "solves" the crime at all: the narrator simply has good luck to see the criminal's confession. The narrator is clearly not Watson.