It can go in both directions.
People who are addicted might seek travel as a way to try get away from the problems those addictions caused, perhaps hoping that travel can be a clean break. In my experience that works insofar as if you aren't close to your connect or the triggers that led you to reach for the bottle, you might sober up for a bit. But because the scene is full of addicts you're bound to meet more potential connects along the way, and booze is easy to get anywhere even if you fly solo, so it's not hard to fall back into it.
On the other hand if you head out sober to begin with, maybe you have a bad experience, you don't have any friends or family to lean on, maybe you'll try find comfort in the bottle, or you'll just use it as a social lubricant to get some kind of human connection, or you'll become curious about another drug that's available, because why not, right? You're free, you're on the road, no attachments, no responsibilities... until you get hooked, and then freedom is just a distant memory.
End of the day i don't think you're especially more likely to get addicted on the road than you are housed up, and i don't think heading out on the road is a long term cure for any addictions you already had. Bad shit is always going to happen that you might want to try escape or block out, and no matter where you are the temptations are always going to be there to seek chemical relief, no matter how damaging it might be to your health or the people around you. Whether on the road or housed up, resilience is a good skill to cultivate.
Of course there's no right or wrong way to deal with this. It's going to be different for everyone, we all have our own experiences and see the world in our own context. What works for some doesn't work for others. What might have worked for you 10 years ago might not work today. All i can really suggest is that you try be honest with yourself about your struggles and your desires, and that you stay true to the person you want to be. If you really want to stay clean on the road, just do that. It is possible to largely avoid people who are using if that's something that will make it easier for you. If you've dealt with addicts before (or been one yourself) you can hopefully recognize reasonably quickly when you're hanging with the types who lie about being sober when actually they're not, and then you can just move on. One of the best things about being on the road is exactly that you don't need to stick around if something's not working for you. Walk the path you wanna walk.