No, a sway bar does not affect the wheel alignment. It affects the handling or feel of the car by reducing body roll. You do not need to get a wheel alignment done just because you replaced the sway bar.