Yes. Hold down the key while you drag the attribute to the plot. Make sure the key is still down when you release the mouse button. This forces the attribute to be treated as categorical even though its values are all numbers.
This also works when dragging an attribute to a summary table.