Encouraging anyone to do positive things is good, the background of the encourager is not necessarily of consequence.
If, though, the encourager is using their own background to support their encouragement - then that background should survive scrutiny.