It may be possible.
What's the output waveform of the UPS when it's operating on battery backup power?
Some computer power supply units won't work with a UPS that outputs a simulated sine wave or a stepped approximation to a sine wave or a square wave or a triangle wave or trapezoidal wave.