Yes, if your job mainly consists of staring at your computer all day and you work primarily with others in the same boat, you are probably going to be more productive at home.
If you work with a large cross-section of people and/or your work is dependent on relationship building, you are probably going to reap benefits from going in.
If the majority of your company is remote, all bets are off and going in to an office (if one is offered) isn't going to do much for you. I'm the exception to this rule - I prefer to be in an office even if my work is semi-solitary; it's where I'm at my best.
And most importantly of all, the most effective environment depends on the person. A majority of people understand that and know what is best for themselves - we should respect that. The benefit from making most people more productive outweighs the cost of the few who take advantage of the situation. I wish more managers understood that.