Does a gas cooker require a lid to shut off gas when closed?

there is a rumour going around that all gas cookers provided in rented accommodation must have a lid that, when closed, shuts off the gas.