That is true, but a lot of that, if replaced by electricity, would use considerably less energy overall, so it's not a 1:1 comparison.
Residential heating in particular would use anywhere between a third to half the energy, if we only transitioned to heat pumps.