Can having pee sitting for a while affect pregnancy test?

This morning I saved my urine in a little cup to use later, and I took the test about 4 hours later and got a positive result, could it be wrong because I had my urine sitting?