The OneHotEncoder does not increase the number of variables, it just creates a binary column for each category. The model becomes more complex and slow to train.
With these reduced number of variables you should take into account that too many categories may lead to overfitting