Lice do not care if hair is clean or dirty. They are bugs that evolved to live on heads of all kinds and eat blood to survive. It’s not worthwhile to anthropomorphize head lice. Being a clean or a dirty person has no connection to catching head lice.