Vegetable scraps—are they beneficial to the garden?

Vegetable scraps—are they beneficial to the garden?