When you heat sugar at high temperatures it will condense and turn to a thick gummy texture. It may also burn and cause free radicals that damage your cells. The sugar does remain, after cooking and will contribute to your total carbohydrate intake.