in general, weight lifting does little to improve cycling performance. Now, if you have a deficit of core strength gym work will improve your comfort, which probably will improve speed.
Having said that, I don't think that you really need specialized cycling training for long distance. There are various training plans out there that don't take too much time, and they will be much better for you than just going out riding