"Those who honor their father atone for sins; they store up riches who respect their mother." (Sirach 3:3)
"Kindness to a father will not be forgotten; it will serve as a sin offering—it will take lasting root. In time of trouble it will be recalled to your advantage, like warmth upon frost it will melt away your sins." (Sirach 3:14-15, New American Bible Revised Edition)
It sounds as if the author is encouraging readers to do good works to be seen of men, a state of heart that Christ condemned when addressing the Scribes and Pharisees.
So, it appears that the Roman Catholic Church is in error for including the Book of Sirach in its canon of Scripture. This apocryphal work may contain much spiritually edifying material, as well as having literary value. However, the Book of Sirach also contains doctrinal error. It is not inspired Scripture. This author was obviously zealous for the Law and could rightly be characterized as legalistic.