No. No character named Mordecai appears in Sir Arthur Conan Doyle's original Sherlock Holmes canon (4 novels, 56 short stories).
The name is biblical (Mordecai in Esther) and appears in other fiction (e.g., Regular Show, Borderlands), but not in Holmes lore. You may be confusing it with:
Provide the source (movie, show, book title) if you recall a specific "Mordecai" in a Holmes derivative.