When to Pre-Train Graph Neural Networks? From Data Generation Perspective!