When are you least fertile in your cycle?

Are the days before you get your period the least fertile?