No. A properly performed squat will work and strengthen your hamstrings and adductors, assuming that is what you meant by "closer" muscles. Unless you have a specific muscle imbalance, weakness or injury, the compound movements will provide the best training bennefit.