As long as the M&P you are looking at has a picatinny rail, or the ability to add one, that light should be mountable. I googled the M&P Sport II and the images I saw didn’t have any way to mount on the handguard so you may need to solve that first
The Streamlight HL-X posted by @Sheepdog556 is a great rifle light, but it wont mount on a pistol. The Olight PL2-Valkrie is a great pistol light that you can mount on a rifle. I posted some pics of that light in @Joseph_1970’s other thread. Olight has a couple other lights to consider as well, the PL-Mini is tiny and rechargeable, the PL2-PRO is similar size to the PL2 but is rechargeable and outputs a little bit more lumens.
I’d also add, dont go too crazy with accessories before you run the gun for a bit and get a feel for what you may or may not want out of it.