Would Plan B effect pregnancy test?

Let’s say if for any reason, plan B did not work and you ended pregnant, would it alter or mess with a pregnancy test?