Not in the US, but I believe there are some countries that have tried that. For a while Europe (in general - but individual countries had different policies!) had less tax on diesel because it was more energy efficient, then they realized it was more polluting (less CO2, but more NOx...) and started encouraging gasoline which they decided was overall better.
In the US diesel taxes are often different from gasoline, but polluting is generally not a factor.