Yes, sugar is necessary for the compote to reach its proper consistency and sweetness. You can adjust the amount based on your taste preferences. A sugar substitute, like Splenda, may also be used.