Does the sugar possess the same property before and after heating?

No. Sugar is a carbohydrate. After heating (or burning or charring) it is oxidized to carbon dioxide and water and the reaction is irreversible.