One night won't damage you too much, realistically. People say to definitely not go for a sleepless night of revision before an exam, which in all fairness can really only be applied to someone who's revised in detail and plans on looking over notes again the night before the paper. If you NEED to learn info, then you don't really have any other choice. Get perhaps a power nap before you leave for exam and good luck - All the best.