No, that’s the point. The library has successfully restricted access to material it deemed inappropriate for children—perfectly legal, by the way.
I’m surprised that any public library is doing that