Period and pregnancy?

 So I've heard that you can be pregnant and have a period, is this true? If so, how would you know if you're not pregnant simply on waiting to start your period if you can have a period and still be pregnant? How do you know the difference?