You need to have the right overall length, and also the right distance between the flanges that act as the inner bearing cups. Too little and you'll turn the cups all the way in and it'll still have too much slop. Too much distance, and the cups won't turn in far enough and may interfere with the inner face of the crank arms.