Its true for integers if you are using the associative property in addition or multiplication ONLY.
9.5m questions
12.2m answers