In my experience, individual offices are paradoxically better for collaboration. When I was a junior dev, I either shared an office with one person or had one to myself. It made it easy to invite someone to my office or go to theirs to have a conversation about something, and we all had whiteboards in our office so we had diagramming tools at hand.
Open plan offices are counter to this.