Hello Kathy,
Yes, the subwoofer can be placed anywhere. Only concern is that the bass of the sub-woofer will rattle the cabinet doors. For clear dialogue I would recommend you look for a Samsung sound bar with a minimum of 3.1ch due to the direct center channel being used for dialogue. Please check out at Best Buy for Samsung Sound bars.
https://www.bestbuy.com/site/samsung-hw-t650-3-1ch-soundbar-with-3d-surround-sound-2020-black/6400685.p?skuId=6400685
https://www.bestbuy.com/site/samsung-hw-s60t-4-0ch-all-in-one-soundbar-with-alexa-built-in-2020-black/6400705.p?skuId=6400705
^Cristian