Not only that, but the fuel source of an ICE must produce carbon output. However, there are many fuel sources for EVs that are carbon neutral (solar, wind, hydro, nuke).
Where I live, my power comes from mostly nuclear sources, so the production of my car has been the only major carbon impact that it's had.