You asked

Is the canon rf s 18 45mm f 4 5 6 3 is stm good for portraits?

The Canon RF-S 18-45mm f/4.5-6.3 IS STM is usable for portraits in good light, but it isn't a portrait lens. Its specs show it frames like 29-72mm on full frame, so the long end is a reasonable portrait length. The problem is the aperture. At f/4.5-6.3 it gives about the depth of field of f/7.2-10.1 on APS-C, so backgrounds stay busy. The guide's portrait advice relies on soft backgrounds and a comfortable working distance, which this zoom can't give you. Its stabilisation helps with still subjects in dim light, but it doesn't freeze a moving child. The aperture explanation is useful here: a lens that gets darker as you zoom in loses light exactly when you want to isolate someone.

If you want to start with this zoom, pair it with an APS-C body such as the Canon EOS R50 or Canon EOS R10. Use it for casual outdoor portraits, shot at the long end and with the subject some distance from a plain background.

For portraits that look like portraits, the guide's first choice is a fast 50mm. The portraits page calls the 50mm f/1.8 the cheapest great lens in photography, and on APS-C it behaves like a classic 75-80mm portrait lens. Check that the version you buy is made for your Canon RF mount. If you later move to a full-frame body, the Canon RF 45mm f/1.2 STM is a light, fast prime 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}.