Is it practical to become an airline pilot in order to travel internationally?
No, this is not a good idea, and No, it is not possible finish your education at 23, and then get employed as an intercontinental airline pilot. 

It seems you have a distorted idea of what an airline pilot actually does. An intercontinental airline pilot usually spends just 24 hours at the layover destination. Much of that time is spent sleeping to recover from the fatigue of the long haul flight and sleeping to prepare for the next long haul flight. Not much time for sight-seeing.  

The first requirement for becoming an airline pilot is a love of aviation and aircraft.  Most airline pilots today have been passionate about aviation since an early age. 

You will never be successful unless you are passionate about aviation due to all the roadblocks and hardships you will have to overcome in order to reach your goal. 

To say that you only want to do it for 1-2 years is proof enough that you don't have what it takes.