Is this a myth?

So I always used to hear that it's impossible to get pregnant while on your period but I think I recall seeing something that said it is very possible to get pregnant any time whether on your period, ovulating, not obviously, whatever lol I probably seem really dumb rn.. sorry. But is it a myth or not?