Is this why oceans are salty?
No, because fresh rainfall has no salt in it, so as long as the river keeps moving the salt has no time to accumulate.

Only stagnant sources of water on land, like lakes with no outlet, can become saline.