Can a virgin male teen be affected by uti?

Yes. Anybody who has a urinary tract (kidneys, ureters, bladder, urethra, +/- penis) can have a urinary tract infection. This happens to people every day, all over the world. A teen male is much less likely than a teen girl to get a UTI. Thus, a teen male with possible UTI symptoms needs to see his doctor.