Yes. You can simply pull out the striker block (simply punch out pin) and lift it all right out. Then you can buy replacement frame plugs to go in the holes left behind. I did it on my last M&P, very easy. There is a video on youtube showing the DIY.
Here you go. Full size and compact are identical.
M&P Thumb Safety - YouTube