It is recommended to have the measles vaccine before traveling, especially if you are going to areas where outbreaks are common. This helps protect not only yourself but also others you may come into contact with during your trip.