The foxes are getting in at night and attacking the chickens . I shall have to guard *them* .

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