You asked

Is the canon ef 100mm f 2 8 macro usm good for portraits?

The guide says yes, on a full-frame camera. The Canon EF 100mm f/2.8 Macro USM frames at its marked 100mm there, a little longer than the 85mm that the portraits guide calls the classic full-frame portrait lens. Longer focal lengths flatter faces because you stand further away, so 100mm is a good headshot length, and the lens also focuses very close, which is useful for detail work.

On APS-C it frames like 160mm, which is long for most portraits. You'd need room to back up, and at f/2.8 it gives about the depth of field of f/4.5 there, so the background blur is weaker than the number suggests. It still works for outdoor headshots.

The lens isn't stabilised, so keep your shutter speed up when photographing people. Its f/2.8 is slower than an 85mm f/1.8, so most of the background softening comes from distance. The guide's aperture and background blur section notes that moving your subject away from a wall often does more than a faster lens.

Good pairings from the catalogue, all Canon EF mount:

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