If my roommate possibly has gastroenteritis and threw up in our bathroom can I use the toilet without getting sick?

Yes. Toilet seat should be cleaned with antiseptic. Remember to wash hand thoroughly. Use your sleeve or piece of paper for inner door handle, the last person may not have washed their hands.