Not the manager, but perhaps the environment or the office culture. I've had times where I wasn't getting much done working from home, and I have had great runs of banging out code at the office (sometimes in a cube farm no less). Some people can't stand distracting noises but I have no problem with them. I do have a problem with interruptions. As the articles states: a programmer needs 15 minutes to resume work after an interruption, which is true in my case. On top of that, after a day full of interruptions I am exhausted, both physically and mentally. But: getting up for a coffee is not an interruption. "Are you coming to Lisa's barbeque later?" is not an interruption. An interruption is when you have to engage your brain on another task: a phone call, someone asking a technical question, your manager asking for some document, etc.
A good manager understands this, and is able to create a work environment for differing work styles, or work out reasonable compromises (keeping in mind the consequences). Such a manager will also make sure to create a culture where these work styles can thrive. It's ok to ignore your email for most of the day, as long as you make that clear in an out of office reply. Don't disturb coworkers with headsets on, or those working in isolation pods. Do disturb others in case of emergencies, as long as you understand what those are. Seat the more chatty people together. It works, but it isn't always easy to create such an environment, and it does cost money.
I've had a rare few managers who understood this, and who created a work environment suitable both for solitary coding as well as collaboration. And in my experience, in such an environment the coders are just as productive as they are at home, but the collaborative parts like design meetings, brainstorming sessions or daily standups were vastly more productive compared to conference calls. In contrast I've worked in toxic environments where productivity was low. But it wasn't a case of toxic management, just poor management. And they might do as poorly when managing their teams remotely.