it is very important to you to know at first what is the physical meaning of correlation. It is a comparison of two signals to see the degree of similarity between them,
in CDMA, at the receiver, it will compare the sent code with the saved code at the receiver, if it is similar then, this means it will decode it to produce the original transmitted signal.