Yes, the labels
{1,…,K} can be treated as integers and a regression model can be fitted.
However, this is not recommended
because regression imposes an artificial ordinal and metric structure on class labels and minimizes squared error, which is inappropriate for categorical outputs. This leads to incorrect loss behavior, poor decision boundaries, and lack of probabilistic interpretation.
Therefore, classification-specific models are preferred.