So much depends on exactly what bike you have and the quality of the components. If it is a cheap discount store bike, that was never very good, and the rust is severe enough, you do have to consider how much time or effort you want to expend just to end up with an even worse bike than it was when new.
John