Yes. It is illegal not to have a gas safety certificate.
The law applies to landlords and tenants who live in rented accommodation with a gas appliance.
A tenant or landlord can be fined up to £200 for not complying with the law.
A landlord could also be fined up to £50,000 if they don’t comply and somebody dies as a result of the lack of safety measures.