yes you only really need 4 lines/pins for usb 2.0 pwr/gnd/ and 2 data lines the missing pin is a optional case system ground pin
just make sure you get the orientation correct, as applying power to the data lines or reverse power polarity on a usb header is sure to ruin your day (IE- kill the usb port)