Yes, Israel was carved out of the British UN mandate. Self-declaration or creation is a matter of semantics.
Ben-Gurion did not wait for final British withdrawal.
On 14 May 1948, he formally proclaimed the establishment of the State of Israel, and was the first to sign the Israeli Declaration of Independence, which he had helped to write
Wikipedia