Substitute Passenger Door

I have recently purchased a damaged Micra 1.5 Diesel Sport 2005. I need to replace the passenger door with a substitute door. Is it possible to take the door lock from the existing door and substitute it for the lock in the replacement door? Excuse my ignorance.
 
Top