No - not true.
Ordinary window glass will only stop 85/90% (depending on thickness) UV rays below 300 nm & about 40% of 300-400 nm.
Don't bother trying to get a good sun tan in your neighbours greenhouse, when they don't know about it & find you there, lying in the dirt, with no clothes on, eating their prize tomatoes.