Yes, but only after sending prophets to warn his people, again and again, to change their ways before it was too late.
لكنه قبل ذلك ارسل انبياءه مرة بعد اخرى داعيا الشعب الى تغيير طرقهم قبل فوات الاوان .‏