It's best to mix wood shavings and sawdust with green stuff and compost it before use. The microbes which break down woody matter need nitrogen to do so and will take it from the soil if you dig it in. It's OK as a surface mulch to help stop the soil drying out, but I wouldn't dig it directly into to a veg plot.