Let a recently moved refrigerator stay upright for 2-4 hours before plugging it on to allow the compressor oil to return to its proper place.
If you know the unit was moved on its side, give it 24 hours and then cross your fingers.