We were taught that, too, but it wasn’t enforced. Nurses with long fake painted nails are, IMHO, either not too bright, or just don’t care if they expose themselves or patients to who knows what.
My mother was not a nurse but she was a medical secretary from the old school. How old school? She drummed into me that only nurses were allowed to wear white hose or stockings.