Absolutely, water vapor running through your exhaust will make O2 sensor read lean forcing the comp to increase fuel making mixture rich. After replacing the head gasket I would reset the computer and maybe replace the O2. The glycol in antifreeze will gum up the O2 pretty bad of course it will eventually burn off, just takes awhile.