Not entirely. While most whales are marine, several freshwater cetaceans (often called river dolphins) inhabit rivers and lakes:
These species are adapted to freshwater with distinct morphology (longer beaks, flexible necks). True whales (baleen & toothed whales) remain exclusively marine.