It depends. How much do you care about actually passing these courses? Because if you care at all then it's probably a really bad idea to do that. I know I would never take any final (even a math final) without getting a good amount of sleep the night before, but you may feel differently.