When two objects of different temperature are in contact heat energy will flow from the hotter to the cooler object?
Yes, that is correct.
Heat always flows from warmer objects to cooler objects, unless you have a device (like a heat pump) to prevent this. The natural tendency is for two or more objects at different temperatures to eventually all have the same temperature and this is accomplished by heat flowing from the warmer objects to the cooler objects.
Temperature is a measure of the heat energy of objects, and heat is the energy transferred from a high temperature location to a low temperature location. When two objects are in contact, heat always flows from the warmer object to the cooler object by conduction, until thermal equilibrium is established and the heat transfer stops (becomes the same in either direction). The transfer of heat continues as long as there is a difference in temperature…
A cooler or cooler box is an insulated box used by people to keep drinks or food cool or chilled. Cooler works with the process of thermal insulation which is the process of reducing the effects of other processes of heat transfer between different objects, thus, making the objects inside the cooler kept cold.