Is there any pain involved in an urinalysis?

No. Lab test , you give them some urine and they run some tests on it.
Mostly no, but... If you have a urinary tract infection or a sexually transmitted infection, it could hurt alot when you urinate (burning, lancinating character) . Sometimes this symptom is called dysuria.