TL;DR
Yes — don't wait for it to cool on the counter. Just split large batches into shallow containers first so the middle cools fast too.
Old kitchen wisdom says let food cool to room temperature before refrigerating, but that advice predates modern fridges and actually works against food safety. Waiting means your food spends more time in the range where bacteria multiply fastest.
What matters is how quickly the food's center drops out of the danger zone, and that comes down to container size and shape more than whether the fridge door felt warm for a minute.
Why waiting to cool it first is outdated advice
Food sitting between 40°F and 140°F (4-60°C) is in the temperature danger zone, where bacteria like Salmonella and E. coli can double in number roughly every 20 minutes. Leaving a hot pot on the counter for an hour to cool keeps it in that zone far longer than putting it in the fridge right away, and an hour is already close to the outer limit of how long any perishable food should sit at room temperature.
Portion it before it goes in
A deep stockpot of soup can take most of a day to cool through in the fridge, because the center stays insulated by the food around it — sometimes it never drops below 40°F fast enough to be safe. Split it into containers no more than 2 inches (about 5 cm) deep, or into smaller portions, and cold air can reach the middle in a fraction of the time. Stirring in a few ice cubes as an ingredient (for soups and stews where a little dilution won't hurt) is another quick way to knock the temperature down.
The timing USDA recommends
The target is dropping from 140°F to 70°F (60°C to 21°C) within 2 hours, then from 70°F down to 40°F (21°C to 4°C) within another 4 hours, for 6 hours total. Shallow containers, a little airflow around them (don't jam the fridge full), and a fridge set to 40°F or below to begin with all make that timeline realistic.
What to skip
You don't need to leave food uncovered on the counter first, and you don't need to wait for steam to stop rising — a loose or vented lid while it's very hot is enough, then seal it once it's cooled further. Just don't let it sit out for more than 2 hours total (1 hour if the room is above 90°F/32°C), and don't stack hot containers directly on top of each other, since that traps heat between them and slows both down. Leaving a small gap between containers on the shelf, rather than pressing them together, helps just as much as the container size itself.
Hot food in the fridge is not just allowed, it's the safer choice. Portion size, not patience, is what actually protects the food.