GoodNotes 5 is a universal app, which means you only need to upgrade once to be able to get it on all your Apple devices.
For example, if you upgrade from the App Store, you can redownload the full version to your Mac. The reverse is also true: you can buy the full version on the Mac App Store and use it on all your iPhones/iPads.