Consider that we are given 4 matrices A,B,C and D

So, if I have to find ABCD, would the order of multiplication matter (I would be multiplying adjacent matrices only) ?

Would (AB)(CD) be same as (A(BC))D or A((BC)D)?