I've taken steroids when I had a virus because the symptoms caused by the virus were severe. The doctor made it clear that I should take it as little as possible, but it was "your throat is going to close up OR it takes a little longer to get better".