Yes, but if the spacecraft is not exactly on the plane between the two spheres, it will not generally be attracted to the center of gravity (in particular, if it's fairly close to one of the two objects, it's acceleration will be toward that object, largely ignoring the effects of the other). It's not that an object is never attracted toward the center of gravity of some object or system, it's that you cannot safely assume that it will in all cases.
Originally Posted by xylophobe
Conserve energy. Commute with the Hamiltonian.