Better than nothing, but depending on the shop vac and hose size, may not be much better.
Router table and table saw dust collection works best with high air flow.
If you have a shop vac with 1 1/2in hose, it will not have a lot of air flow. Too much pressure drop in the hose.
A shop vac with a 2 1/4in hose will work better.