pregnancy question

alright me and my friends got in an arguement today about this lol.  can you get pregnant at any time or it it only at a certain time of your cycle?