Mucus coming out of butt

I feel very sick like a high fever, I felt like I had diarrhea but ask that came off was yellow clear mucus from my butt, had this happened to anyone while sick ? Should I go to ER?