That's the point of all uses of oil, other than rust prevention.
Some engines are also substantially cooled by oil, but those are either older designs (think “air-cooled” Porche) or industrial prime-movers.
Some engines are also substantially cooled by oil, but those are either older designs (think “air-cooled” Porche) or industrial prime-movers.