Plants respond to stimuli. If they respond to the gravitational pull of the moon, that's just another stimuli. If that response becomes stronger or weaker over many generations, that's survival, breeding, evolution.
Plants lack a brain and nerve system so I'm going with, no, plants don't think...