Why do some formations have low viscosity basaltic lava and others have higher viscosity felsic lava?

Could it depend on the composition of the lava, in particular its silica and aluminum content?

http://en.wikipedia.org/wiki/Lava