The short answer is yes.
The long answer is that it will be terribly convoluted. I'd buy a second smart control box and set it up in the second room. You can use the app to switch between rooms.
If you do use one system for both rooms, you'll have to probably have extensions and a second IR blaster from the main unit. As an integrator, I'd advise against using this method because the delay/lag between remote commands will be greatly increased.
Good luck....