Water yes, but I haven't seen anything about CO2 so I think you're stuck with hydrogen-oxygen engines (which have different tradeoffs than methane-oxygen engines).
https://everydayastronaut.com/raptor-engine/ (scroll down to the text immediately above the RP1/Methane/Hydrogen chart)