Probably would be best to give a description of what you are actually trying to do instead of how you are thinking of doing it. There are always multiple ways to do something.
To answer your question, sure, with relays, etc you can accomplish what you wrote…just not sure that’s what you really want.
On Quick look, don’t see why that wouldn’t work. so you would be using the backup circuit breaker as a connection switch…
The only downside is if the Shelly relay does turn ON, and you have manually turned on the Secondary then you have two 16A breakers for the load (not one). That could be remedied if you used a double throw contactor relay to isolate the circuits and the bypass not just powers the relay, but also triggers the relay (disconnecting the primary breaker).