Pasta can be kept if its still separated, sauce from pasta.
Pasta can be kept in fridge for a few days. The sauce if its
tomato based can be kept in freezer up to a month. Cream based,
better not to keep. General guideline, if its cooked, its safe to
keep, but make sure its room temperatured cooled before throwing it
in the fridge.