The potential energy of an object at any height is given by the formula
Here, m is the mass of the object, h is the height from the surface of the planet.
g is the acceleration due to gravity due to that planet.
The acceleration due to the gravity for earth and mars is different.
Thus, the statement is false.