Yes, but you can't stop eight year olds from grabbing a James Patterson or Stephen King novel from the shelf. Their parents should, and some librarians might throw a moral exception to their choice, but if they wanna read It, they're gonna read It.
Enforcing anything other than that is a huge 1A violation IMO.