Is it sewn in long, funny-shaped stitches and probably in a different color from the rest of the stitching in the kilt? If so, then it's most likely the basting thread which holds your pleats in position during shipping, and yes, you should pull it out.