Yes, they can live together, but when snails are bigger compared to shrimp, snails may eat them.