It is when done right as backed by God and the Bible. "Go and sin no more." by Jesus himself is a good example.
If we don't ever correct anyone then Christianity becomes a country club with no new members/saved people.
Hypocritical judgement is not what we are to do and there is a difference.