They did this on Top Gear (or Grand Tour maybe, can’t remember). Personally, cooking doneness aside, I wouldn’t want some exhaust leakage from the engine or burning oil that’s seeping from a gasket to taint the flavor of the food even if there were a guarantee of no carcinogens from it.
I’d definitely have to make a burner account before answering this honestly.