No, as soon as Hamas seized power (right extremists sponsored by Israel, as a counter to the left-wing PLO btw), Hamas suppressed all democratic movement. The UN or the world did not manage to pressure Hamas into holding elections. Therefore, Hamas does not have a mandate of representation of Gazans