No. Almost none of the books you donate to the library get to the shelves. If they can sell it, they will. Otherwise they are thrown away.
I even read on a web site of a librarian that their library had stopped accepting donations because "patrons should know how to throw away their own trash".