Education can give people the tools they need to form valid opinions of their own and make appropriate and rational decisions. It can help people see things from other points of view. I knew some people who were homophobic, simply because it was their upbringing, but after choosing to allow themselves to be educated on facts pertaining to LGBT people are completely wonderful allies now.
People can be changed by education in several ways. When you are young you don't have an understanding of the natural world. Humans are naturally inquisitive. Education helps to understand the things around us, how things work, why some things happen.
On the other hand, many believe the current education system is being used to brainwash society to be mindless drones who follow government oppression without complaint.