I think the dangerous thing about people thinking you have to code all the time is that they're just assuming that it makes you a better coder without any real reasoning. And that's the kind of assumption that is very prone to confirmation bias.
I'm not sure why it would hold that, if you do something for 40 hours a week, you'll necessarily improve if you do it for an even greater amount of time. And, besides, effectiveness as a developer is not just about coding anyway. A lot more goes into creating products and services than lines of code.
And as for things like programming or any mental/intellectual skill like that? I highly doubt it.
As a general rule, you're going to see heavy diminishing returns on time invested. By the time you've spent 40 hours doing it, a few more hours on the weekend is unlikely to have any real benefit, and to the extent it causes burn out or takes the place of something that helps you stay healthy, it's likely to be a net negative.