Should I put a cap on this pipe?
That is one option. A better option may be to replace the double-wye with a single wye and eliminate unnecessary potential future leak sources. The wye on the left is no longer needed. The fewer the joints, the fewer potential failure points.