Period and still pregnant??

So I’ve heard you can be pregnant and still get a period somethings is this true ??? If so how does that work ???? Sounds crazy to me lol