STD Testing & period

This is just a random question that popped in my head lol. Can you get a STD test on your menstrual cycle?