Urinalysis during period

Can I take a urinalysis even on my period? Will it compromise the results? I’m not exactly sure what things they are testing for. I was just told to take one.

Note: I wear a menstrual cup.