Yes, trivially. The tricky part is building a system that the median citizen (and the officers in the military) can verify has been optimised that way vs competing, poorly optimised systems that sound good. Factor in the median citizen has maybe a couple of hours to do research, isn't very principled and doesn't understand game theory well. Also consider that high status people are perfectly happy to set up an "expert" in any given field to spread propaganda favourable to them.
The problem isn't setting up a great system, the problem is what happens when charismatic leaders and people like Stalin turn up.
The problem isn't setting up a great system, the problem is what happens when charismatic leaders and people like Stalin turn up.