Do I have to be a city resident to be employed by the city?

No.