No, James was the epitome of masochism. Pyramid Head, as an executioner figure (As evidenced throughout the game, as well as his overall appearance) is James' subconscious efforts to punish himself for
(SPOILER)killing his wife, Mary. It's only after he comes to terms with what happened, and accepts his actions that he's able to defeat them.