You can buy your eSIM at any time. However, to set it up, you will need internet access (Wi-Fi), so we recommend installing and activating it just before starting your trip or upon arriving in Andorra.
Keep in mind that your eSIM will not start consuming data or validity days until you activate it and connect to the Andorra’s network.