Some of the better managers I’ve seen had no background whatsoever in the field they were managing. But they were great at listening, working with people, managing conflicting interests, and taking decisions after consideration of relevant input
if manager knows how to code he will try code using your hands. aka micromanaging. you will get comments like "well just add an 'IF' here and case closed". you don't want manager like this.
That's malarkey. It may happen that way but it's certainly not common in my experience.