Yes, i believe so.
When they are placed in one room, the shock inflicter could directly see the emotions and the pain that experienced by participants who receive the shock and make them less likely to do it.
When they are placed in separate rooms, they could inflict the shock without having to witness the damage that they cause.