Plan B

How soon after taking Plan B can you take a pregnancy test and have it be accurate?