You asked

Should I buy a used or new 24mm lens for my canon eos 200d if I shoot at night?

For night shooting on a Canon EOS 200D, the lens's maximum aperture matters more than anything else. The 200D is an APS-C camera with no stabilisation in the body, so a wide opening is what lets in enough light. On this body a 24mm lens frames like about 38mm on full frame, a standard view that works well for street scenes, friends and portraits.

Three 24mm lenses that fit the 200D suit night work:

The guide's pages here don't give prices for these lenses, so the guide can't say whether a used copy saves money. Check the price section on each lens page, and remember that prices change. The site's general advice is to consider used gear to save money, as on the first camera page. Whichever lens you buy, budget for a new genuine battery if you buy the camera used, as the buying used page notes.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.