Yes, and you are correct about what it means.
It might well be a sort of a joke. It is "pirate talk."
Nobody knows how the real pirates in the 1700s talked. Books about them, notably Robert Louis Stevenson's "Treasure Island," were fantastically popular. "Peter Pan" presented a child's idea of what pirates were like. Movies were made, and they copied dialog from each other. And then of course we had Walt Disney and "Pirates of the Caribbean."
So, there are a number of stock phrases--words and languages that pirates say in movies--that have become popular, not alway the same exact phrases.
"Whip the scurvy dogs!" is one of them. "Avast, me hearties!" "Walk the plank!" "Yo-ho-ho and a bottle of rum!" "Come hither, me saucy wench!" "Dead men tell no tales!" "To Davy Jone's locker with ye!"