Pregnancy

Is it okay to take a pregnancy test a week before your period if you already missed one last month ? Will it still be accurate ?