Can you get head lice from briefly coming into contact with someone who has them?
Whether lice transmission occurs after brief contact with a person who has head lice depends on the nature of the contact. Typically, there is no risk of transmission from brief physical touch without hair-to-hair contact; however, if the hair strands rub against each other or personal items are shared during contact, transmission becomes possible. The detailed analysis is as follows:

If only brief, light contact occurs—such as between arms or shoulders—and there is no contact between the hairs, head lice cannot transfer from the infected person's hair to a healthy individual, so there is generally no need for concern. Head lice primarily spread through direct hair-to-hair contact or sharing personal items; simple limb contact is not a major transmission route.
If the heads come close together during contact and the hairs become entangled or rub against each other, lice may crawl from the infected person’s hair onto the healthy individual’s scalp. Additionally, sharing hats, combs, towels, or other personal items after contact increases the risk of transmission, as these items may carry live lice or nits (lice eggs).
In daily life, it is important to maintain personal hygiene and avoid sharing personal items with individuals who have head lice. After contact with an infected person, promptly inspect your own hair, especially areas behind the ears and at the nape of the neck. If lice are detected, use specialized anti-lice treatments, and wash clothing and bedding in hot water and dry them under direct sunlight to completely eliminate any infestation risks.