Not without additional hardware. As far as I know, the PS4 only has one HDMI connection, so you would have to have a splitter that separates the sound from the HDMI and transmits it separately. Unless you connect the PS4 to a TV that has an audio output, either 3.5mm or TOSLINK, then it also works.
The Soundbar is very easy to install. You must go to the SAMSUNG homepage to find out whether your TV is compatible. There is a link to the list in the product description of the soundbar.