That's probably true! Animals will do what they can do to survive, and a lot of times you'll find squirrels raiding the trash bins at local food chains and parks.
I always thought they were stealing things like french fries out of there, but maybe they steal sweets, too.