In a mixed economy it is as you say. We can use market data to learn about peoples' preferences and then we can make policy based on that. This is actually what the government does. It's what businesses do too. As ML gets smarter, and surveillance more widespread, planners can get better at implementing their objectives... in a way that people might not even realized they're being manipulated.
Which, in my opinion, is a scary thought.