STD testing and period…

I need to get an STD test and have one scheduled for tomorrow, but I’m spotting and I know I’m about to start my period soon. Can I still get a test done if I start my period?