Yes, you should replace all 4 shocks at the same time. This isn’t necessary, but if you want your vehicle to function relatively correctly, you should replace all 4 at the same time. Especially because shocks aren’t that expensive and replacing only one shock at the time could cause the other three shocks to get damaged easily.