It’s best practice to replace all four tires at once. But if you need to replace one and the other are relatively new, then you’re fine replacing one.