No. If your battery system is 48V the 24V one will break, and if your battery system is 24V the 48V one won't work.
If you just want a spare one, in case the first one breaks in an emergency - then having the wrong voltage might be okay, but it will be very inconvenient because you'll have to rewire your batteries to get a different voltage. That might or might not be possible, depending on how many batteries you have and which type.
Off-grid inverters will break if you connect the outputs in parallel. If not for the voltage problem, you could put the inputs in parallel, but you'd still have to keep the outputs separate. You couldn't wire them both to the whole house - you could wire one to one part of the house, and the other one to a different part.