Can you use discriminant analysis to classify new observations into categories generated by a previous $k$-means clustering?

After doing k-means clustering on a set of observations, I would like to construct a discriminant function so as to classify new observations into the categories I found after k-means. Is this at all a good idea? What should I be careful with?