Yep, psy-ops is half the game on both sides.
Groups such as ISIS also very much work on ideological basis/foundation, which can’t be destroyed by bombs, no matter who drops the bombs on them.
So, don’t fuel the ideology in any way - socially, economically or through military aid and training, because any of them will only embolden them.