Nearly right.
Only if the MIs say you CANNOT.
"A gas hob shall be connected to the termination point by means of rigid pipework or, unless stated
otherwise in the manufacturer’s instructions, a flexible connector and self-sealing plug device conforming
to BS 669-1."