Yes. You can buy a maximum of 6 tickets for people taking the train with you. This is valid for all people taking the same route in the same class and together at the time the tickets are checked. You can, however, purchase different types of tickets for each of the passengers.