will the quality of sea water affects the quality of desalinated water?

Hello everyone. a lot is talk about sea water desalination these days and everyone seems to be agreeing that the desalination is the answer to the water scarcity. I wonder Does seawater quality has any impact on desalinated water quality?