No, they are not the same but come from the same plant family called cucurbit (gourd) which also includes melons, pumpkins and squash.