Hi, my name is Dan and I will be working with you today on your question!
Night time photos will be best obtained with lenses with wider apertures (lower f/ number such as f/2.8 or lower)
Generally speaking, the higher the ISO the 'faster' film and less blur, but at the cost of more 'graininess' or noise
The longer the shutter speed the more light the pictures (but more blur)
Shooting night shots well incorporates a balance between a fast lens, ISO setting, shutter speed with the trade offs mentioned above
So to answer your question, a good pancake lens with a wide aperture will allow you to take faster (fast shutter speed) shots at a lower ISO than one with a more narrow aperture
Let me know if that helps!
If it does please take a moment to rate our interaction to close this question.
If you have further questions, please feel free to ask them below and I will gladly continue to assist you!