The formula is
F_grav = G * m1 * m2 / r^2
G m1 and m2 are going to stay the same once chosen no matter what the distance is. The only thing that will change is the distance.
As the distance increases, the Gravitational Force will decrease. It will decrease by quite a bit.
As the distance decreases, the gravitational force will Increase.
The relationship is inverse. The moon travelling around the earth is one example. The earth travelling around the sun is another.