You asked

Is the canon rf 16mm f 2 8 stm good for astrophotography on the eos r7?

The Canon RF 16mm f/2.8 STM fits the EOS R7, and it's a sensible wide option, but it isn't the best choice for night sky work. On the R7's APS-C sensor it frames like 26mm on full frame, which is wide enough for the Milky Way. Its f/2.8 aperture is the limit. The focal length converter explains that the crop sensor gives more depth of field at the same f-number, not more light, so f/2.8 is still only moderately fast for stars. The site's pages don't cover astrophotography directly, so this answer rests on aperture, framing and the sensor.

The lens isn't stabilised, but the Canon EOS R7 has stabilisation in the body, which helps keep the camera steady. Stars are static, so that helps, but it doesn't make a dim scene brighter.

For a faster wide-angle on the R7, the guide prefers these:

Each of these gives up the RF 16mm's autofocus-friendly, lighter build for speed. The lenses guide explains how much each stop of aperture matters in dim light. Keep the RF 16mm if you also want a light everyday wide lens.

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