It all depends on what your agreement with either employer is. If you are contracted for 8 hours of butt-in-seat work, with zero on-call, and zero expectation of stepping up to handle urgent problems, there might be no ethical problems.
But I have never had a software job where that was the case.