God sometimes allows us to feel anger so we'll recognize when we're being mistreated. But even when we experience true injustices in our lives, we must not vent our anger in an improper way.
Is all anger sin? No, but some of it is. Even God Himself has righteous anger against sin, injustice, rebellion and pettiness.