Works just as well the other way around. Every time managers are mentioned at HN, some programmer is sure they can do a better job than their/most/all managers.
Also, yes - anybody can do management, and anybody can do coding. Learning to do either effectively is a skill.