Yes it can. This is called herpetic witlow.
It's generally only seen in people with underlying immune problems (like aids
patients or people with other primary immune deficiencies). Any time i (a dentist) see a patient with herpetic witlow, that is an immediate referral to an md to figure out what the underlying immune problem is.