In certain comic arcs, Batman did play a role in the outcome that resulted in Harvey Dent's death. However, the context and motivations behind it can be quite convoluted and differ from one comic version to another.
It depends on the specific comic series or storyline. Sometimes, it's a complex situation where Batman's actions might have indirectly contributed to Dent's demise. But in others, it might not be as straightforward.