Yes, but you should be asking your guardian anyways. Some would prefer you to sleep or something similar good for your health. But if its ok with them there is no reason why you cant
I am by no Means Professor Greyrose but maybe I can help with this. It would mainly depend on weather or not your parents allow you to play while you are sick. If you are adult then why by all means Play it could make you feel much better ;)