Yes, taking antibiotics has no known effects on menstruation. Talk to your doctor as soon as you think you have an infection, regardless of where you are in your cycle.