Yes. If all your cars get the maximum use out of the energy in the petroleum and you provide atmospheric pollution controls on the power plants that eliminate smog/particulates then you have a net win, even if your total energy from petroleum doesn't change.