Yes, you can do this in the Draw Style dialog by selecting ColorByProperty
and adding a new style with a property_name
of gpml:shapefileAttributes:<attribute-name>
and then using your own CPT file (colour palette) to map the attribute’s values to colours.
Also, this post has some relevant details.