Have you ever missed a period for about give months?

I didn’t have a period from August to late December (had no sex and the period has reappeared) - should i be worried?