Pink eye can affect individuals of all ages, but it is more common in children, especially those who are in close contact with others in school or daycare settings.