Yes, celestial bodies such as planets, moons, asteroids, and comets are held in their orbits and positions primarily due to the force of gravity. Gravity is a fundamental force of nature that attracts objects with mass towards each other. It is responsible for the formation and stability of various astronomical objects and systems.
According to Newton's law of universal gravitation, every object in the universe attracts every other object with a force that is directly proportional to their masses and inversely proportional to the square of the distance between their centers. This means that larger objects have a stronger gravitational pull and can exert more force on nearby objects.
For example, the Earth's gravitational force keeps the Moon in orbit around it. Similarly, the Sun's gravitational force holds the planets of our solar system in their respective orbits. The interplay between the gravitational forces of celestial bodies determines their motions and positions within the universe.
It's important to note that while gravity is the dominant force shaping the large-scale structures in the universe, other factors such as the momentum of celestial bodies, electromagnetic forces, and the effects of other physical phenomena can also play a role in the overall dynamics of astronomical objects. However, on a broad scale, gravitational forces are crucial for maintaining the structure and stability of celestial bodies.