Grant worked hard to harvest his beans so he and his family would have enough to eat that winter, His friend Henry let him stack *them* in his barn where they would dry. Later, he and Tatyana would shell them and cook them for their Sunday dinners.

Are "them" and "beans" the same thing in the aforementioned sentence?
yes