Yes, but IMO it’s bad practice to modify core tables in a plugin.
If you move this to a plugin, it’s better to use group_custom_fields or your own, designated, table.
In this specific case you could also (instead) add a site setting like “allowed inherited groups” and have the admin select all the groups that can be inherited into this single setting. That would keep things much more simple and it groups all the functionality provided by the plugin into a single place.