> when none of their ancestors for how many generations [farmed]
Because they'd still have books and seeds and farming implements lying around? And maybe some actual farmers to learn from?
> What if they get it wrong, they'll starve?
Probably, yeah many will starve. Early English settlers in North America had very little farming experience and many died. Enough survived to build colonies.