The gravitational force between objects is dependent on their mass and distance from one another.

Yes, you are correct. According to Newton's law of universal gravitation, the gravitational force between two objects is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers. The formula for gravitational force is:

F = G * (m1 * m2) / r^2

where F is the gravitational force, G is the gravitational constant (approximately 6.67430 × 10^-11 N*(m/kg)^2), m1 and m2 are the masses of the two objects, and r is the distance between their centers.