I mean, yes, if we care strictly about oil that might be true.... The energy source for the batteries on the electric car is an important consideration though.
There's an argument to be made that car dependence supports a kind of "mid-density" suburbia, that is both energy-inefficient and fiscally unsustainable.
https://cayimby.org/map/why-evs-alone-wont-fix-climate-change/