That's the thing though, no it isn't.
If you continue driving a gas car it continues to generate emissions, if you switch to an electric car it offsets it's emissions (compared to switching to another gas car or keeping the same gas car) after max 80k km and after that it's a better car for the environment than whatever gas car you would have been driving instead and that you keep driving and that keeps increasing its carbon footprint.