Answer
Yes, he is a librettist. A librettist is a person who writes the text (or lyrics) for an opera, operetta, or musical. The librettist's work is to create a story that is suitable for the music and that will appeal to the audience. The librettist must also work closely with the composer to ensure that the words and music are in harmony with each other.