Yes, for that reason Santa Clara County (Silicon Valley) is pushing hard to divert food waste out of the garbage and get it composted instead: it's supposed to go in with yard waste, not the regular trash. Not sure how successful this is as it counts on people putting things in the correct bin.