A theorem about maximal Cohen-Macaulay modules