It’s not the same effect. Then the sauce will be salted, and the pasta will maybe absorb some of that salt.
But, in my opinion, that’s an inelegant solution.
I personally do not want any more salt in the pasta sauce than what’s already in there. I do, however, want my pasta to take in a little salt from the water.
For those reasons, I add a little salt to my water as it’s boiling