At a very high level, yes that is correct.
There is more to the process, of course, such as setting up your account with Google or Apple, provisioning the product, marking them as consumed, and so on. The exact details depend on which system you are using.
The documentation for Android is located here, for your reference. Apple has their own similar system you can look up.