No -- libraries go to a dark alley and steal illegally printed versions of books and CDs.
What do you mean? Of course libraries buy authorized copies. Or maybe somebody donates them. Whatever. The point isn't whether the library has to pay cash in the transaction, the point is that each book and CD is a legitimate copy, sanctioned by the copyright holder.
Good grief, why is this so difficult for people to understand?