yes and no.
steam engines require fuel to be converted with water into steam prior to the steam being harnessed and generating work
internal combustion engines directly convert fuel and air into work via an enclosed explosion.
both require passages, valves, timing, etc. to work.
at the end...