A:Answer Yes, IF the soundbar has a 3.5mm. Honestly, you will get MUCH better sound if you use an Optical (Toslink) cable between the two. All soundbars have an Optical. If you are not familiar, look at link below. Can be had much cheaper elsewhere(big place named after a river in South America)
https://www.bestbuy.com/site/rocketfish-4-toslink-optical-audio-cable-black/5854300.p?skuId=5854300