It’s the same gas, and it is dangerous. Not as dangerous as actually inhaling smoke or cooking over a wood fire, but a bit dangerous.
All combustion products, including the ones that are created when you cook food on an electric stove, have a camp fire, or are passed by an ICE car.