Machining will create residual stresses

All type of machining will change the residual stress state.

Both mechanical machining, turning, milling, and grinding. But also cold deformation, shot peening, pressure rolling, bending, and wire drawing.