It's nowhere near that simple though. CO2 is one big contributor, but not the only one. Methane is also a big contributor[1], and things like beef production are a big part of increased Methane emissions (by no means the only source).
[1]: https://www.nationalgeographic.com/environment/global-warmin...