Both the near side and the far side of the moon have a day and a night. Both receive sunlight at certain points of the moon's orbit around Earth. We just can't see the far side of the moon, even when the sun is shining on it, because the far side always faces away from us.