It's never a guarantee but in general they should be fine. There's a chance that snails will eat slow moving shrimp, if they get the chance, but normally they'll leave each other to their own devices...except when the shrimp eat stuff off the snails from time to time!