Difference in Sample size for different labels

I am doing a classification task in which I have 7 labels. The number of training samples for all 7 labels varies. Like for label 1, I have 3k samples and for label 6 I have around 10 k.

So, this difference in sample size will affect my accuracy?