If you want to image both day and night targets, a 100-400mm lens is a reasonable compromise. Also, if you already have the lens, it's also a good a idea to use it before committing you hard earned money into a hooby you may or may not like. That's the way I began, using some lenses and DSLR my father lent me. Once I was hooked, I began spending more and more on specific astro equipment. Notice I don't do regular photography.
If your focus is solely on astrophotography, then go for a dedicated telescope. I would say that the difference in quality is enormous. Telescopes, besides being prime lenses, are optimized (at least in theory) for imaging bright point-like objects (stars).
You can spot the difference in those two images:

M8 and M20This one was imaged using a zoom lens (a Canon EF 100-400 L II at 200mm if I recall correctly). It's a nice image and I like it very much, but theres a lot of chromatic aberration and field curvature that I had to work around in post to correct.

M8 and M20, two years laterOn the other hand, this is one of my most recent images mage with an Esprit 100 (550mm focal length). Not really an apples to apples comparison, but to get the idea, the stars are MUCH better and easier to work with.
Hope this helps a bit