This question already has an answer here:
I'm thinking of bringing chocolate for my friends in my flight a month from now.
Should I keep it with the check in baggage? Or with my carry on?
Assume that weight isn't an issue - all I need to ensure is to keep it from melting.