Shel Silverstein was known for his whimsical and humorous poems for children. He wrote many popular poems, but not one specifically named "The Pirate".
It's possible you're thinking of a different poem or perhaps you're misremembering the title.
Would you like me to help you find a Shel Silverstein poem about pirates, or perhaps a poem with a similar theme?