Yes, "letting" is a gerund in the sentence, and "letting them go" serves as an object. In general, you consider something (a noun). For example, consider the cost. (In this case, you don't have a gerund.) Another example, consider going to the party. (Here "going" is a gerund.)