Of course, if you purchase a one-way ticket that covers the entire distance you want to visit, you are free to walk the entire distance. Please check the specific description of your ticket to make sure it covers all the areas you want to visit.