My male cat keeps going to the litter box but little or no pee comes out. Is it serious?

Yes. Treat it as an emergency. A male cat straining with little or no urine may have a urethral blockage, and a full blockage can be fatal within 2–3 days.

Other signs: crying in the box, licking the genitals, vomiting, hiding or acting weak. Go to your vet or an emergency clinic now, even overnight. Don't wait to see if it passes.

Sources