Answer:
They can be thrown into new orbits, or even thrown clear of their parent galaxies into intergalactic space. While galactic collisions rarely destroy stars, they often create them. As vast clouds of gas and dust in merging galaxies slam together, they can create thousands or even millions of new stars.
-Galaxy Formation | StarDate Online
https://stardate.org/astro-guide/galaxy-formation