Is it fair to have a legal category for youths?

Is it fair to have a legal category for youths?

 Is it fair to have a legal category for youths?  Considering how dangerous young people can be, does it make more sense to group offenders on basis of what they have done rather than on their age?