Yes, Israel is the country in the Middle East that has not signed the treaty and is not under obligation to abide by it - it maintains a policy of strategic ambiguity and does not conduct sabre rattling or threaten to launch first strikes upon it's neighbours. Given the history of it's neighbours militarily having a nuclear detterent has been a factor in maintaining relative peace for the last 30 years.