Pregnancy test.

If I pee in a cup then dip the preggo test in there, will the test still be accurate if I’m pregnant?