A lot of people have a lot of theories to support the opposite, but we do not believe that going to temple is a problem. Having periods is as natural as being a woman and no god can be averse to that. Especially when there is kamakhya temple of menstruating goddess that literally worships her for the same.