A new city would be much denser than the suburban and exurban sprawl that currently fills our demand for new housing, and so would end up in taking much less farmland than continuing along the current path.
(And the amount of farmland we're talking about, both for new cities and for sprawl, is small as a fraction of total farmland.)