Can I check my urine while having my period?

Yes you can. Your urine may have some red blood cells in it, however the nitrite test and/or urine culture will be reliable regarding presence or absence of infection.