I've bent chains back and used them afterwords, you don't always have to replace things. If it's incredibly fubar you do need to change it. Try to find a bike co-op, you can likely get a new derailleur and have it installed for a few dollars. Bike shop prices will be more as I described.