Yes, anyone can give IAS exam be it any government official or general candidate or student. WBCS officer who is in Executive post or Group A post, he/she can become IAS officer even after some years of his service. But if he/she wants to become an IAS officer through state PSC, he/she needs to crack PSC as soon as possible, around 22 to 23 years, although other factors are also in there.