Do molecules modify with the change of matter state?
NO, matter state changes dont modify the nature of molecules, they only influence their organisation. Molecules can revert to their initial state and change their state this way several times without any consequence to their characteristics. So, hot scraping just after wax application by iron is simply a mechanical way of applying waxes to clean structures. Whether you let wax cool down or not in no way influences its composition!