Yes. Diagram 1 shows the position again.
Black should play Qxe8 as in diagram 2

______________________________________________________
White will play Rxe8, taking black's queen, as in diagram 3 on the right.
White has done better but this way black has managed to get a rook in exchange for the queen he has lost.