It's not necessary to get an alignment after installing new shocks. However, if you're also replacing other suspension components, such as the springs or control arms, then an alignment might be necessary.