Farmland as in a place to live where you raise crops and cattle? That is certainly a good investment, but it requires a lot of maintenance. You can't really do much else, and you'll need to either have a large family, or possibly give up your job.
I personally have a nice little plot of land that I can garden intensively to produce all the food I need, including grain, eggs, and possibly milk and meat (probably goat).
As others have said, you can take your gold with you. You can also use gold to buy previously overvalued land near a city, where you might be able to get a job and commute.
If you buy farmland, I would suggest you also have some gold. You will need it for supplies and equipment.
Of course, if you mean investing in farmland and having someone else work it for you, I don't know anything about that, so I couldn't give an educated answer.