Yes. That is how grouping works: all the selected items are collected at the level within the layer of the uppermost selected item. the order of items can be rearranged within the group, or the position of the group within the layer. An item may be moved out of the group to change its position in the stacking hierarchy, but of course then it is no longer part of the group. This is normal behavior.