You are correct, however most of the harmful rays get filtered out in the upper atmosphere. Far-UV doesn't reach Earth, only UV-A and small amounts of UV-B (if the ozone layer is more or less intact that is!).