No, you cannot play Call of Duty: Black Ops 1 or 2 on a PS4. The PlayStation 4 is not backwards compatible with PlayStation 3 games, so you cannot play any PS3 games on a PS4. However, you can play Call of Duty: Black Ops Cold War on a PS4.
Yes, you can play Black Ops on the Xbox Series X and Xbox Series S. The Xbox Series X and Series S are backward compatible with a wide range of Xbox One games, including Call of Duty: Black Ops titles. Black Ops is a popular first-person shooter video game series developed by Treyarch and published by Activision.