Did all pirates wear coats?

Not all pirates wore. But when they did it was the captains who wear the coats.