I think this is more or less the consensus opinion among managers, which is why we mostly have office jobs that support some WFH rather than fully in office or fully remote.
IMO, that's because managers favor butts-in-seats and the idea that they can "see you working".
IME the only people who actually like open plan offices are managers, extroverts, and flakes, most of whom irritate non-managers, introverts, and non-flakes.
The managers I’m referring to don’t need to see you working. They want you to see you collaborating and socializing with the team in person, but are fine with you doing your actual coding at home and rarely if ever touching your desk. The office is open plan but usually pretty empty, as everyone is either in conference rooms or at home.