Sure...up here in Maine we use our bayonet's to open boxs of 550 ammo packs ...you wouldn't want to get a paper cut opening them...
All kidding aside I don't think the M&P 15-22 has the required bayonet lug on the barrel.
Although the Ruger 10-22 Archangle kit dose come with one
Question is how would you attach one?