It’s an interesting question. The best boss I ever had, had never served in the ranks. Yet, the worst bosses (plural intended), I ever had, were commissioned from the ranks or ex soldiers whom went through the School of Cool/Fool.
Personally, I believe it’s an attitude thing, rather than a “rank” thing.