It is not really a good idea. Cold pasta salad with mayo is not the best dish for freezing due to the ingredients in mayo. It loses its creamy texture when it is thawed and it also changes the consistency of the macaroni salad. What you can do is to freeze the salad without the dressing. You can add the dressing after you thaw the salad in the refrigerator for a few hours.