2003 honda civic ex automatic jumps from drive to d2?

I changed the sensor on the side of the transmission and changed the transmission fluid. The D light blinks and check engine light is on code p01705.
Is my transmission gone?

Defective Transmission Range Sensor (PRNDL input)
Defective Transmission Range Sensor (PRNDL input) wiring or connector
Defective Valve Body
Defective manual shift valve linkage
Dirty transmission fluid that restricts the hydraulic passages

See a mechanic to check the output of the transmission range switch before you condemn the transmission.