Answer:
It depends on the environment they are in, if they are in their own they will be fine, but if they are a saltwater fish in freshwater or vise versa they will die in a few days (excluding the bull shark which can adapt to both but I highly doubt you have one as a pet)