Yes, it's super simple to install GrapheneOS and to revert to the factory OS on Google Pixels. It is done from Chrome browser with phone connected via USB cable, no need to install anything. Of course when you'll switch, you'll lose all data on your phone, basically like factory reset (but esims survive I think).