I know nothing about the theory of superconductors, but purity can affect electronic properties. For example, pure silicon is quite a poor conductor. If you dope it with a little bit of an n- or p-type dopant (an impurity), it conducts better. Add a bit more, and it conducts more. There are other effects, too.