I am confused about your question. Power door locks or automatic door locks?
Our cars aren't made to lock automatically when you put in in drive.
With an aftermarket alarm system, it is possible to make the doors lock automatically after you turn on the car; if you have power door locks.