It is best to buy travel insurance before you depart for your trip. Some countries may not accept insurance purchased at the border or once you arrive in the country.