Yes, it happens to matter. Neocaridina aka Neos vs. Caridina.
If you have Neos, Blue Velvet for example, and you end up with another blue kind seemingly the same (blue shrimp) but not really, they can breed because they are both Neos, but the breeding causes crosses in the line of shrimp. The certain lines of special color shrimp are refined and selectively bred for color and features, when a differing shrimp gets in it can mess up the color line breeding.
If you have certain kinds /lines of shrimp - say Blue Diamond, they can have offspring of differing colors, dark or medium blue, brown, bronze, purple-ish. Those are then culled for the color the breeders are looking for.