No, being angry in itself is not a sin. The bible says, BE angry but sin not (as a result of it.) “Be angry but do not sin; do not let the sun set on your anger” (Ephesians 4:26).
Did Jesus get angry? YES
Does God get angry? YES.
So, did they sin – of course not.