I does fit the truck mentioned, so long as it has the HB5 bulbs and not the square sealed beam. It fits other trucks as well, such as early 2000s Dodges.
The end with the pins may look funny (and wrong) because it's designed to allow you to connect those pieces in two different ways depending on whether or not you have HB1 or HB5 headlamps. That's why the ends are labeled accordingly. You only use 3 of the 5 pins either way.