If iCloud is enabled in GoodNotes, then all your documents are saved in iCloud Drive and they are not included in any iCloud device backups. When restoring your device, your documents in GoodNotes are not restored along with the device backup, but will be restored from iCloud Drive after launching GoodNotes.