Fine but when head gaskets go there may be other damage as well, particularly but not exclusively if the car has been driven for some time with a dodgy headgasket, so a compression test on engine cylinders is sually done to diagnose whether there is anything else to worry about.
As an example I have a Saab 900 Classic convertible which does very few miles - the head gasket went five miles from home, I drove it home very carefully without the car overheating and had the engine compression tested, one cylinder wall was still thinned and I ended up having it sleeved whilst the head was off for the gasket to be done.
If your mechanic says its just the headgasket then fine, maybe he has compression tested it already, but probably best to check.