Which version?
You'll find out when you get it and open the box.
Having said that, if it's Catalina -- but you want Mojave instead -- it IS possible to install it, but first you have to:
- Create an account in Catalina, then reboot to recovery partition, then DISABLE "Startup Security".
- Then, reboot to a special version of internet recovery using "shift option command R", which should enable you to install Mojave instead of Catalina
- Open Disk Utility, go to view menu, choose "show all devices"
- Select the TOP line (represents physical drive) and ERASE it to APFS, GUID partition map.
- Now open the OS installer and install Mojave
- When setup begins, have AN EXTERNAL BACKUP ready to connect and migrate your data over.