Sex while on period

So had sex on my period with my boyfriend,and we didn’t use condoms because it was in the moment. I just want to know is that bad to do something like that without a condom.