"It's best practice to update the device before installing GrapheneOS to have the latest firmware for connecting the device to the computer and performing the early flashing process. Either way, GrapheneOS flashes the latest firmware early in the installation process."
Source: https://grapheneos.org/install/cli#prerequisites
Seems like it might work!