Period

So can you still get pregnant on your period? I got told today that you can but I thought you couldn’t.