Yes, we can assign a task to a group while creating it or later by editing the task.