So, not sure from your question if you have had the work done or not, but it won't affect the answer.
The new (or good second hand replacement) will need to be programmed to the vehicle as it needs to know the addresses or identity of the other components to function correctly.
In fact, some cars have to have the dash, lock control and ecu all sold together as re-programming is not always successful - and you see adverts for "sets" on selling sites for exactly this reason.
As to the price, well, difficult to say as prices vary for labour etc between country / location and who did the work.
If it is working now and the vehicle still has value then you get what you pay for.