Yes, you can do exactly that. :-)
Just be sure the gasket you use is the same thickness as the original gasket.