Yes, you can study Magnetism before Electrostatics for JEE Main 2022 Physics. However, it is easier to understand the concepts of Electromagnetism with a good knowledge of Electrostatics or Current Electricity. You can learn the fundamental concepts, derivations, and formulas to answer the exercise questions and solve the numerical problems of Electromagnetism easily by dedicating more time to studying the chapter.