can you get pregnant when its not close to having your period?

"After one month of trying I became pregnant and had a beautiful healthy boy!"

"After over 7 years of trying to conceive and thousands of dollars spent on infertility treatments, I had actually succeeded to get pregnant the natural way without any drugs or medical intervention "

" I just wanted to say thank you for writing this program and for giving hope to women at my age. I am 46 and I am finally going to be a mother."
Best information and tips about help for pregnant women, help with pregnancy and pregnancy help
my friend told me if you have sex that you cant get pregnant if its before 2 weeks before your period. she said you need an egg waiting which only happens 1-2 weeks before your period. is this true?

You are most fertile in the middle of your cycle. Avoiding pregnancy that way is called the Rhythm Method, and it is terribly inaccurate. If your body has been through stress or illness, it may affect your ovulation date, and all bets are off! Whatever you do, use a condom, and get on birth control.
B)
True most of the time but not all of the time. About 24-48 hours after ovulation you are infertile for the rest of your cycle but you can’t be 100% sure you actually ovulated unless you’re closely tracking your cycles with BBT charting or having bloodwork taken to measure your progesterone.
If you don’t ovulate at the normal time because of stress / diet / travel / illness / ect then you most certainly can get pregnant much closer to when you’d expect your period.
Two weeks before your period is when most girls ovulate, and sperm can live up to a week waiting for the egg, so your friend is seriously misinformed.
You ovulate half way through your cycle. If your cycle is 28 days like most then that is 2 weeks before you have your period. During ovulation you are more likely to get pregnant but it is possible to get pregnant at any time in the month if protection is not used.
No you can get pregnant anytime in your cycle. And if you have an regular 28 day cycle then 2 weeks before/after your period is the most likely time you will get pregnant. Use protection! And educate your friend..