I don't know about pipes, but marijuana and hashish have been known in the mibble east for thousands of years and were definitesly smoked by Barbary Corsairs. Hemp/Marijuana was probably one of the earliest crops in most colonies for it's textile value so I would expect that a buccanneer could likely get a pipeful of the stuff. Indian slaves were made to chew coca leaves to get them to work harder by at least the 1580's, and it was also a significant component in a lot of snuff.