Even changing JUST shocks in a front MacPherson strut suspension is very likely to through the alignment off. Definitely if doing the whole cartridge.
I did an experiment ~5 years ago to test this. I replaced the front shocks with OE units in the front of a Lexus ES. All other components unchanged. Since the tires were near the end of their life, I skipped the alignment to gauge the effect on tire wear as a proxy for alignment. Also, I measured as objectively as I could the ride height before and after the change, using a standard metal tape measure and noting height from ground to points on the fender arch, and also from the hub to the same points.
My measurements, within what I could tell with the tape eyeballing to the nearest 32nd, showed no change. But the tires started almost immediately wearing unevenly - they had been perfectly symmetric before that. So if you care at all about the tires, get the alignment. If they are near finished, you could eyeball the results and see. And sway bar components like bushings and link ends won't make a difference at all.
In another test, last year I replaced the lower control arms in the same car, complete with the lower bushings. I ran it for about six months until it needed new tires and there was zero change in handling or tire wear. I put on new tires without an alignment and they are wearing fine.