Period prego?!

Some one told me that u can be pregnant on your period . Or u can be pregnant and get your period . Is that true or are they mistaking it for spotting?