It depends on the airline carrier. Not on a carry on USUALLY but sometimes you can.
on southwest you can Absolutely NOT, it is too big to fit on the overhead compartment, so they will not allow you...
It really depends on how large of a plane it is. If the plane has 4 seats total, the legal limit is probably 4. It is not legal to have 4 seats and have 6 people in each.