As long as the soundbar has an available analog input and you add a phono stage if the turntable doesn't already have one....at least I doubt there are soundbars with a built in phono stage (preamp/RIAA circuit).
ps There are some bluetooth/wifi enabled turntables now, too so maybe the soundbar could connect that way, too....