Fundamentally, alas, yes—both began as identitarian beliefs. Einstein was right when he signed this letter about the Freedom Party, which became part of Likud:
"Among the most disturbing political phenomena of our times is the emergence in the newly created state of Israel of the "Freedom Party" (Tnuat Haherut), a political party closely akin in its organization, methods, political philosophy and social appeal to the Nazi and Fascist parties. It was formed out of the membership and following of the former Irgun Zvai Leumi, a terrorist, right-wing, chauvinist organization in Palestine."
https://www.marxists.org/reference/archive/einstein/1948/12/02.htm