First of all you should answer some questions yourself. Do you take sweets along with regular diet? and How do you take sweets in functions, before meal or after meal? If you take sweets before meal it’s okay but if it’s after meal then you are in trouble.
As per our ayurvedic science, It’s better to eat sweets before meal. Because our stomach may fill with gas while you are in hunger. So if you take sweets in that time that gas will leave slowly from your stomach. Mainly it’s better to eat sweets before eating fruits. If you follow this it will help you from the gastric problem and some other diseases.