No, it's not the only option. It's the option that has been resorted to countless times in the past, and massively failed each and every time. It will only breed ISIS 2, 3 4 and 5. Only giving each new version of the group more ammunition to recruit, and more displaced and ignorant people to pray on.
The key is education, infrastructure, trade, academia, dialogue, improved foreign policy etc. Basically these places that are currently breeding grounds, need to cease being areas of constant war, violence, destruction, fear, turmoil and poverty. These things are perfect catalysts with which such groups thrive.