Does it effect the test??

Is it okay to leave urine sitting for a couple hours and use it for a test later?