No, you can play PS4 (and PS3/2 via emulator or streaming) games just fine with the DS5.
There is one exception, you can't play a PSVR (1) game that requires the camera to track the light bar on the controller with a DS5, but that's very few games and for technical reasons (the DS5 does not have the light bar)