periods and pregnancy

Okay so i have a weird question but i need opinions and answers.

i was told that if you don’t have periods, you can’t get pregnant....is this true?!

my body doesn’t produce enough hormones for me to have periods on my own so i have to take the pill to be able to have them. but i have been off the pill for a while and i haven’t had a period in almost 6 months. is it true that i cant get pregnant without having my period ?