Can you get pregnant...

This sounds stupid but I don't know the answer. If your trying for a baby can you get pregnant anytime of the month or just in your fertile window? I've read different things.