The Andromeda galaxy is about 2.5 Mly away, less than 1 MPc, so if the Hubble flow were relevant, it would have Andromeda moving at about 55 km/s away from us. Andromeda is actually approaching at about 300 km/s, or almost 6X that calculated due to the expansion of space. However, Andromeda and the Milky Way are graivitationally bound along with the rest of the galaxies in our local cluster. The individual (so called, peculiar) velocities of these local galaxies are the result of orbital motion within groups and around the local cluster barycenter.
Expansion dominates on larger spatial scales, such as distances between clusters and superclusters of galaxies.