Quantum correlations as precursors of entanglement