LineWeight without adding cap?

Is it possible to set a LineWeight for a line and have it only apply to the width, as I don't want it to extend the ends?