Initially but the excess food allowed population to increase and the only way to feed them was to keep farming. So in a way humans trapped themselves.
It is actually the plants (barley, grain, grapes, millet, potatoes, taro, maize, rice, sorghum, manioc) that tricked the humans into cultivating (reproduce) them/
Such nonsense the idea that farming was a trap. I think it was Sapiens that propagated this myth in recent times.
Is there a ceiling in the industrial revolution era? Famously the 1972 book Limits to Growth says yes for that question.