Paying homage?

In the episode describing the sentient dolphin species, Hewey ( or was it Louie or Dewey) said “So long and thanks for all the fish.” Was that paying homage to Douglas Adams and The Hitchhiker’s Guide to the Galaxy? Was Adams an inspiration?