Once the light has passed through the aperture of the lens, it reaches the shutter. Now you need to decide how much of that light you’re going to allow into the camera.
Ordinarily, you only want a very small fraction of a second (for example 1/250) to prevent motion blur. However, different shutter speeds complement different situations.
Anything from really fast (1/4000) for sports photography to really slow (30 seconds) for Night Photography It all depends on what you’re shooting and how much light you have available to you.