Can you get an STD if you have sex while you're on your period?

Yes. Menstruation provides no protection against spreading a sexually transmitted disease. Condoms are the most effective way, but nothing is 100% sure.
Yes. If the person you are having sex with has an std, you can get it whether you are on your period or not.