Psalm 30:5 For His anger is but for a moment, His favour is for life; Weeping may endure for a night, But joy comes in the morning.
Yes God does get angry when we continually do things wrong. Is He allowed to? Of course yes!
It is not an anger that is a reaction without thought but a righteous anger because we deserve it!
But His love and mercy continue on further and deeper than the anger and we can be sure His love will bring us more joy in the morning when we turn back to Him!