Can people act as DNA in a cell analogy?
Yes, they can.
DNA or deoxyribonucleic acid are molecules that carry all the genetic information within a cell. This information is necessary for growth, reproduction and routine operations of the cell. This genetic information is passed from parent to daughter cells. We can think of human beings or people as the DNA of a city (in a cell analogy). Just like DNA, people contain all the information needed for the functioning and development of a city (or region). Just like DNA, the information contained in us is transferred to the next generation. Similar to evolution of DNA (over time and/or in response to external stimuli), human beings also develop and increase our knowledge level and we modify our functions. Thus, in a cell analogy, we can consider human beings as the DNA.
Hope this helps.