Blown head gasket

I was just wondering is it possible to blow a head gasket but still have compression on all cylinders. I didn't think it was possible but a friend of mine was told different today and told that his car needs a head gasket but we did a compression test on all cylinders and there was compression all around some cylinders different from others but we didn't warm the engine also