Question: is a worm a producer?
Answer: They feed on organic mater in the soil. They are heterotrophic and yes, consumers. If you mean animals like lombricus terrestris, they convert this materia into other that is suitable for plants to grow, this is a producer.