You asked

Is the canon rf 24mm f 1 4l vcm good for astrophotography?

The site has no astrophotography page, so this is a judgement from the lens's specs. The Canon RF 24mm f/1.4L VCM is a reasonable choice for night sky work. Its f/1.4 aperture lets in much more light than a typical kit lens, and 24mm on full frame is wide enough to frame the Milky Way with foreground. The lens page lists it as autofocus-only with no stabilisation. For stars, that matters less than it sounds, because you'll steady the camera on a tripod and stabilisation can't stop the sky from drifting anyway.

The camera body matters as much as the lens. The guide's sensor sizes section explains why full frame suits dim scenes: the larger sensor gathers more light per pixel than APS-C. The lens fits every full-frame Canon RF body on its page, including the Canon EOS R6 Mark II and the Canon EOS R5. The R6 Mark II is a sensible starting point for night work, but the page doesn't rate its high-ISO performance, so check that yourself before buying.

The site doesn't give this lens's price, so check the shops directly. For a first lens, the guide's lens advice suggests a fast standard prime for low light, and this lens is a wider, faster option for the same job.

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}.