Do a female have to be ovulating to have a period?

Nearly always. The only way to have a spontaneous period (no medicine) is if you ovulate first. There are many reasons for vaginal bleeding that are not menstruation (a period), though. Hope this helps!