Initial stresses and deformations

Can I model initial stresses and deformations that my solid has suffered before applying the current loading condition? for example, deformation caused by excavations, welding, or shrinkage of the material. Thanks