Be very specific, so that we can examine the history. For example, the US assisted the Afghan Mujahideen against the Russian, but when the war ended and bin Laden brought in his Arab Mujahideen to attack Western interests, the relationship changed.
Israel helped Hamas when they started out as a charity, but then when they morphed into a terrorist organization, the relationship changed.