Sonos link and unlink surround

Hi all,
In the Sonos integration, there’s a possibility to make scripts to join and unjoin Sonos speakers to a group.

I’m looking for the following possibilitie:
Script for Beam and two symphonics as surround in a group.
Script for Beam and two symphonics as stereo, 3.0 stereo.

It is possible to set them in the same group but is it also possible to set them in the same group as surround for the Beam?

Thanks.