For compatible shapes, $A(B+C)=AB+AC$ and $(A+B)C=AC+BC$. The identities follow by distributing inside the entrywise sums. Along with associativity, they allow polynomial algebra in a fixed square matrix. They do not justify changing factor order.