The law of gravitation is applicable only to the earth and the moon.
The Law of gravitation is universal, meaning it applies to all mass-bearing bodies in the Universe, including the earth and moon, planets orbiting the sun, apples and earth, and nearly everything that has non-zero mass.
Hence, the given statement is false.