You asked

Is the yongnuo yn50mm f 1 8 da dsm good for portraits?

The Yongnuo YN50mm f/1.8 DA DSM is a good portrait lens, as long as you shoot it on an APS-C body. Its Sony E and Fujifilm X mounts are both APS-C-friendly, and on that sensor it frames like a 75mm lens on full frame. The portraits guide puts classic APS-C portrait lenses at 75-80mm, so this is in the right range. Its f/1.8 gives shallow background blur, though the aperture notes point out that a faster lens is not the only lever. Moving your subject away from a wall helps just as much.

It has autofocus but no stabilisation, so keep shutter speeds up for moving subjects. It is also a manual-feel, budget-minded lens, so pair it with a body that focuses reliably on faces.

Good bodies to pair it with, all from the lens's fitting list:

On a full-frame Sony such as the a7 III, the lens works only in APS-C crop mode, which gives fewer megapixels. If you want full-frame portraits, the portraits guide recommends an 85mm instead.

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