Everything has gravity. If you placed to billiard balls 1 mile apart from each other in space, and made sure they had no inertia, if you went back in 1000 years they would be next to each other.
__________________
"The future is here. It's just not widely distributed yet." -William Gibson
Yes... everything with mass 'generates' and is affected by gravity.
Given no other forces acting upon two objects, even at opposite ends of the universe, they will move toward each other.
It is my understanding the expansion is caused by an initial explosion that created the universe. the expansion rate is slowing and predicted to eventually reverse itself.
__________________
“The problems we face cannot be solved with the same level of thinking we had when they were created” Albert Einstein
The expansion is caused by space itself being created in between stars, pushing them apart. The rate stars move apart is actually still accelerating. The universe will colapse on itself if the total mass is above some critical value. But more than likely it will continue to expand until be dark cold place filled with nothing but extremely long wavelength radiation. You might as well have that beer now.