The range sensor tells the ECU which gear you have selected..
Here is a diagram, part #002 is the range sensor..... The price isn't bad for new even for Honda...
I would do a little more research into the problem before you jump the gun.
Perhaps there is a way you can test your range sensor to rule it out..