Irregular periods

My periods are like 29/30/31 days apart. Does that mean i dont ovulate. I have my period every month and have been of the pill for nine months.

The gynie said to me that your period has to be on the same day every month to ovulate. But i am not sure if that is factual.

Somebody with more information