Use code in Group Resource

Hi!, It is correct to use the Group resource code, with a valueset different from the Kind of Group members GroupKind, for example to use a valueset of programs with which a group of patients is served.