Yes, if the route has altitude information, you can navigate the route using altitude.
However, keep in mind that the Spartan Trainer does not have a pressure sensor. The altimeter uses GPS altitude only.
GPS altitude is an estimation of your real elevation. The accuracy of that estimation is heavily dependent on the surrounding conditions. Anything that may block or disrupt the GPS signal can significantly alter the altitude estimation.