Yes (prices are based on buying in bulk and estimates
Fig Newtons, come in a little package that has 2, 100 cal cookies. Snickers Marathon Bar(Yum 220 cal). Gummy Worms, Jelly Beans, M and M's. Pretty much any candy is good for a mid-ride food, when quickly digested sugars are desired.
As far as Pre-ride food go the recommendations from sports nutritionists is 17 oz of fluid in the 2 hours leading up to a ride,35 grams or carbs, and 10 grams of protien. A Bagel a cup of water and a cuo of gatorade closely match those suggestions. I am sure there are lots of foods that are approx 75% carb and 25% protien with little or no fat that would be excellent preride choices and be much more nutrient dense then candy, cookies and goo's. So save them for during when you need to support blood sugar levels and have a small meal (300-600 cal) Before your ride.
The guidelines for post-exercise are similar to pre. a nutrient dense food with lots of carb and some protien is ideal. Like a few pieces of fruit and a cup or milk. (milk has been studied and found to be on of the best foods for promoting anabloic conditions within the muscle)
So $.33 cents for a bagel and .50 for 8 ounces or gatorade brings your pre-ride meal to $.83 cents and meets the guidelines coming from the reasearchers. $.50 for the 200 cal pack of fig newtons, .59 for a package or M and M's and like 1.00 for 32 oz of gatorade to drink during your ride gives you 700 cal's in your pockets with is enough for a 3 hour ride for a total of $2.09
Post ride .25 cents for a cup of milk and 1 dollar for an apple and a banana gets you a nutrient dense recovery meal for $1.25.
Hopefully that will get you started on a nutrient dense, economical, nutrition plan for your rides. Remember to train like you race and race like you train. Whatever you are eating while you train is what you want to use during the races.