Yeah, my car doors lock automatically when the transmission does into gear. There's a menu to change how the locks work but the default in most newer cars is to automatically lock. Probably not just for carjacking but to keep kids and other passengers from falling/jumping out.
_________________________
“I'd rather have questions that cannot be answered than answers that can't be questioned.” —Richard Feynman