Yes, generally closely related species can be crossed. The results are called hybrids.
Most domesticated platies and swordtails are hybrids, often platy x swordtail crosses. …
Other closely related cichlids, live bearers and killifish will hybridize if kept together.