Answer:
The short answer is "yes"—there is gravity in space.
Explanation:
Why does the moon orbit the Earth? The answer: gravity. Why does the Earth orbit the Sun? Yup, it's gravity. In both of these cases, there is a significant distance between the two interacting objects—but gravity still "works," even in space.