Well, most shrimp are opportunistic feeders. I would guess that if they could catch the fry, they might possibly eat them. Since both of these inhabitants are likely to spend time on the bottom of the tank, chances are high for an encounter. I don't know if the fry will know to swim away from the shrimp.