Correct. Hot foods should be refrigerated as soon as possible within two hours after cooking. Date leftovers so they can be used within a safe time. Generally, they remain safe when refrigerated for three to five days. If in doubt, throw it out!
webmaster@exnet.iastate.edu