Is it possible to assign users to a group upon registration?

If you’re going to decide based on “certain criteria” then can’t you just assign them to the “Good Group” once they’ve met the criteria? (Why do you need to automatically assign them to a group at all?)