considering this guide here http://www.autokeysquad.com/toyota-fob-programming it might be that the key is fine. the only thing which you need to change is the transponder key. which shouldn't cost more than a couple of bucks. then you can program it to your vehicle.
hope this helps