You can as long as they are the same battery type.
But most manufacturers will tell you to keep them charged and/or drive the vehicle regularly so the different batteries won't drain each other out (different internal resistances, float voltages, etc.)