Not significantly. A vertical requires one-shot, all-out, and explosive muscle contraction which long distance running doesn't utilize in order to train. Sprint interval training would come closer to training the system that you need, but plyometrics would be the most effective. Endurance running is still a good idea though, as you want the endurance to be able to recover and dunk more than just once or twice.