Almost, but not quite!

It will work, but make sure that primary and standby are in sync , last log generated before patch is applied to the standby .
In fact, you can not run upgrade scripts in the standby db, it requires db to be in the open mode!