UVB causes melanoma, that is also a form of cancer. So typical glass would prevent sunburn and melanomas from forming but not the deep genetic and tissue damage that UVA causes. It is not a bad idea to apply SPF moisturizer before going out if you plan to spend anytime with the sun shining on you.
But I would like to see some clarification on this topic, too.