Magnesium is important, many people are deficient, supplementation is cheap and supplementation is very unlikely to cause harm (as long as you keep it to max 300 mg of elemental Mg (e.g. 2g of magnesium citrate) a day). Like with vitamin D, you should have very good reasons not to chose to take a magnesium supplement.