Plants IRL don't have brains, yet it has been proven that they will grow towards sunlight. There are other similar examples where living organisms without a central nervous system respond to stimuli from the environment, like pheromones or vibrations. Things don't need brains to take action.