Yes, according to Einstein's general theory of relativity, gravity is not a force as described by classical physics but rather a consequence of the curvature of spacetime caused by mass and energy. In this theory, matter and energy tell spacetime how to curve, and curved spacetime, in turn, tells matter and energy how to move.
Einstein proposed that massive objects, such as planets, stars, and galaxies, create a curvature in the fabric of spacetime around them. When another object, like a smaller planet or satellite, moves in the vicinity of this curved spacetime, it follows a path dictated by the curvature. This path appears to us as the force of gravity acting on the object, causing it to accelerate towards the massive object.
The idea of the curvature of spacetime can be visualized using an analogy often attributed to Einstein: Imagine a large elastic sheet representing spacetime. Placing a heavy object on the sheet causes it to curve, and smaller objects nearby will naturally roll or fall towards the larger object. Similarly, massive objects curve spacetime, and other objects moving near them follow curved paths in response to this curvature.
This concept of gravity as the curvature of spacetime has been supported by numerous experimental observations and is the basis for our current understanding of gravity in modern physics. It provides a more comprehensive and accurate description of gravity compared to Newton's law of universal gravitation, which treats gravity as a force acting at a distance.