Sure. Our concern with something that simple is the possibility of a passenger trying to over-ride it...
Easily solved with a placard on the back of the pilots seat:
PASSENGER NOTICE: If pilot is incapacitated, aircraft will land on its own. Do not touch controls.
There's a great temptation to make things overcomplicated - all that does is create extra opportunities for things to go wrong.
G