Answer:
Yes. Gravity is caused by mass; the more mass, the more gravity. (We're entirely ignorant about the how and the why, but at least we know some of the "what" about gravity.)
Since the Sun has most of the mass, it also has most of the gravity, and the Sun's gravity keeps everything else from spinning off into the galaxy.