Not Fertile = Preggo??

Apologies if this question sounds stupid. Can you only get pregnant during your fertile cycle or can you get pregnant anytime? I have a friend who is scrared she might be pregnant but is noticed it wasn't fertile when they had sex.