The earth revolves around the sun with some acceleration. So strictly, we can say that it is not an inertial frame of reference. But, for the bodies lying on the surface of the earth or very close to the earth, the earth can be considered as an inertial frame of reference.