Can you kill head lice by dieing the hair?

Yes it is possible to kill head lice by dieing the hair.