That depends I believe.
You´re probably right for some cities. But I suspect quite a lot were built in locations that were favorable for a settlement anyway. Say at the estuary of a river, a natural harbour, a river ford, the place where two rivers meet. Or settlements along trade routes, close...