All magnetometers or electronic compasses are mainly calibrated by the code to account for bias, hard/soft iron deposits and magnectic declination, so yes keeping away from any large interference i.e power lines large metal objects that could distort the earths magnetic field where you are...