I do it on old Brit bikes which are notoriously leaky and it seems to work for me.
Some special gaskets on the jap bikes specify particular sealants but most normal gaskets a wipe with grease not only makes a better seal but makes them easier to remove later.