Yes.
Since you are using a projector and might want to connect additional sources an HDMI input selector with audio extraction might be useful. These often has a 2.0 / 5,.1 selector so you can make sure that the output is compatible with the soundbar input.