Does internal combustion engines burn fuel outside the engine?

No the fuel is burnt inside the engine, hence the term "internal combustion"