When two objects of different temperature are in contact heat energy will flow from the hotter to the cooler object?

Yes, that is correct.