Epsom salt is a chemical compound that contains magnesium sulfate which can deter some pests so yes it can be used as an insecticide. Dissolve Epsom salt in 5 gallons of water and apply to foliage using a pump sprayer. It can come in handy in a severe pest infestation.