Yes, you can use your Mac as a monitor for your PS5. To do that, install PS Remote Play on your Mac and connect it to your PS5 console. When doing so, use the same login details on both devices.