No, librarians do not write books. They are responsible for managing the books in a library, including cataloging them, shelving them, and making them available to patrons. They may also help patrons find books and answer questions about them.
John Martin Brain Game: 31 Questions to flex your mental muscles