Yes Anabolic steroids are prescribed to treat medical conditions like some type of anaemia (less blood). They were used before after prolonged illness, operation and general debility to improve body strength but we do not use them for those reasons now.