You don't create carbon out of thin air, it's from the fuel, so burning the same quantity of fuel will result in the same quantity of carbon, no matter how the engine works. Therefore a tax on fuel is a tax on carbon.
Unless you play in the nuclear physics, Carbon in is Carbon out. Carbon in fuel is Carbon out of the engine.