Not quite. Israel and Palestine are separate states. This complicated by withdrawal and the Oslo accords and the geographical placement of Gaza. Since Hamas separated from the PLO, they have been the ‘legitimate’ government in Gaza, but they don’t act on behalf of Palestine overall. That is why the Israeli war aims are the removal of Hamas, and the war is not spreading beyond Gaza (yet). To suggest Israel is an apartheid state is to suggest Gaza and Israel are the same country, which they aren’t.