Yes, compostable plastic bags do work. They should degrade into smaller pieces when exposed to sunlight for some time. The problem is that many plastics won’t break down completely until after several years.