While you shouldn’t transfer food directly from the stove to the fridge, letting it come up to room temperature is a terrible idea. Bacteria will flourish as the food cools, and you might not reheat your leftovers to a sufficient temperature to kill them off again.