That’s exactly how it works. Folders and files created by group members are owned by the group folder. This means that these folders/files remain even if a group member leaves the group.
Another advantage of group folders is that the storage quota of the individual users is not burdened because the group folder has its own storage quota.