I placed a farm on a fertile tile next to my city and it seemed to register fine and all. After a turn of building I changed my mind and canceled the construction with the idea of going back and building it later instead. However, from that point on in the game I was unable to build a farm in that city again.