Using the resulting compost on your veg bed or even just handling it is a health risk. However, some people have dedicated wormeries just for dog poo the resulting compost should be handled with gloves and only be used on ornamental beds, not where any veg, fruit or herbs are going to grow for the foreseeable future.