Plan B

will plan b be effective if i take it a week before my expected period and a week after my ovulation?