Yes, ketchup may help get green out of your hair.  Ketchup is red, which is opposite to green on the color wheel. Therefore, it can work to neutralize the green color.