I have read in numerous places that you should freeze pasta dishes before you bake them, then thaw in the fridge before you bake them. (skinnytaste.com)
If I leave it out for too long (in the fridge) before freezing the pasta absorbs all of the liquid and cheese. (thevintagemixer.com)