As the main code is inside the foreman
package, yes, this is indeed possible.
I wonder if we can influence the order of the package upgrades somehow, or if we need to use the same mechanism we use for plugin changes (see When should the Installer restart Puma)…