No, purple shampoo will not help with fixing green hair.  Since red is opposite green on the color wheel, you’ll need to choose a red shampoo or toner.