can u programe a new key fob to do all the central locking using only that key fob and a spare cut key that can only open the doors??

my remote bit is dead so going down the route of a second hand one any help would be great!