Do Groups For the Assignment Change?

Community Novice

I created an assignment and assigned students table groups. When I grade the assignment later and the students have changed groups, does the assignment groups match the groups when the assignment was assigned or does it update to the current groups? In other words, do I need to create specific groups for every assignment or does the assignment remember the groups at the time of assigning the work?