Do i NEED to use a 4 hr hold urine?

I haven't had anything to drink in 2 hours, I reaaaalllyyy need to pee, can I use my urine for test?