Yeah there is something called the “Big crunch Theory” which is one of the theories about how the universe might end. Like you said, the universe would stop expanding and start contracting, back to a single point (and a black hole). At the moment it doesn’t look like it will happen as the universe is expanding so fast, but it is one of the possibilities.
It is possible that the expansion of the universe continues to accelerate, as it is now (possibly leading to the big rip), or it might slow down, and eventually reverse, causing the big crunch. This depends on the density of matter and energy in the universe. If the density is large enough, gravity will eventually overcome dark energy (which causes the acceleration of expanding space) and pull everything back together until we have a “reverse big bang”. at the moment it does not look like that is going to happen, though.