No whales cannot live in freshwater, at least not for long periods of time.
First to help clarify this topic there are a few species of dolphin that live and survive in freshwater such as the amazon river dolphin, Ganges river dolphin and Indus river dolphin, but there aren’t any species of whale that live in freshwater.
Whales and their prey have biologically adapted to the natural properties of saltwater.
Saltwater contains salts and minerals which help to clear out infection and aid in healing cuts or wounds that a whale may incur from an injury or fight.
Saltwater contains the majority of food whales consume, which generally come from the ocean, not rivers.
In fact one reasons which would affect a whales inability to survive indefinitely in freshwater has to do with the fact that the whale would be unlikely to find sustainable quantities of food in a shallow freshwater environment.
The offshore environment also allows whales to make deep dives and assists whales with surfing as well since saltwater has more buoyancy than freshwater.
Whales (especially those in large pods) need lots of space to survive and prosper which in most cases can only be found in the salty ocean.
In short freshwater is too shallow, lacks large supplies of food needed for survival and is too small of an environment for whales to live in.
Whales have been known to travel to freshwater locations on occasion however they do not stay for very long and eventually return back to the ocean.
In fact although whales cannot live in freshwater for long periods of time there is an instance of a whale which goes by the name of “Humphrey the whale” that survived and lived in freshwater for several weeks, but eventually he became very week and was guided back to the ocean with the help of humans.