The fact that there is an ALTER statement to achieve this should assure you it's a supported action 😉
Internally within the system, filegroups are referenced by their allocated id "data_space_id" and not their name, as shown below
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉