No, your head gasket cannot cause an MOT failure on its own as the test doesn't check this part.
However, a faulty head gasket can affect your vehicle's emissions which counts as an automatic MOT failure. That's why we would recommend booking a visual inspection before your MOT to avoid the risk of failure.