The only case I know of someone bringing sweets to the HSC was because they have Hypoglycaemia (low blood sugar). They also got extra time as well.
Unless you have a medical condition that requires you to eat sweets and you have been eating sweets throughout the year during exams, I doubt you...