That's the reason electric is being pushed so hard.
It is not just the tailpipe emissions from burning the fuel, but also from refining and transporting it, which conveniently gets ignored by all the EV naysayers. They just do not factor it into their calculations...