I think you need a doctor's note, so it's probably a good idea to get one - even if you don't need it but just in case. Not sure but think that they'll probably mark your paper more leniently or add on extra marks.
Sorry to hear you're feeling unwell - really hope you get better soon!