@Natasha_Jay This is a key plot point for the 1964 novel Simulacron-3 - using simulated populations for public opinion polling instead of needing to poll real people (which was done constantly in the novel).
It turns out the protagonist's society was actually a simulator for higher-level entities.
It was adapted into the 1999 movie The Thirteenth Floor.