Would Magnesium salicylate help for knee pain?

No. Magnesium generally won't help. Regardless the key is to figure out what is causing the pain and then treat the cause. The symptoms should get better from there. Lots of young people have patella-femoral syndrome. Start there...
Yes it can. It is in the aspirin family but less irritating to the stomach. We have used it for many years.