I haven’t personally done this. I have brought individual pieces of candy in my carry-on. It wasn’t a lot though. Technically, this would violate the rules, because the individual pieces of candy from the party are not in their original packaging with the full info. However, it’s a bit of a grey area. I haven’t heard of anyone having problems doing this, but you are taking a risk. It’s weird. I hope someone who has done what you plan can give anecdotal info.