Yes, you can use an aquarium pump for both freshwater and saltwater aquariums. However, it's crucial to choose a pump that is specifically designed for saltwater use to ensure its durability. Saltwater pumps are made from corrosion-resistant materials to withstand the harsh salinity of marine environments.