Yes, Major Zero does appear in Metal Gear Solid 4, though only in a post-credits scene. He's shown as a "vegetable" in a wheelchair, as he's 105 years old in the game. Born in 1909, he'd be well over a century old by 2014, when MGS4 takes place, five years after the Big Shell Incident from MGS2 and after his 100th birthday. His condition is a persistent vegetative state brought on by his extreme age.
The reason he features in the ending ties back to Big Boss (formerly Naked Snake of Metal Gear Solid 3: Snake Eater, Portable Ops, and Peace Walker). Big Boss located Zero through the AIs, artificial proxies meant to carry on Zero's will that ultimately failed, in order to settle old scores.
Big Boss wanted to show his "son," Solid Snake (also known as Old Snake due to his accelerated aging as a clone of Big Boss, a result of the Les Enfants Terribles project that produced Solid, Liquid, and later Solidus Snake), the truth about Zero and their bitter history. The two men had each interpreted The Boss's Will differently; Zero craved power over the world, while Big Boss dreamed of Outer Heaven, a military nation where soldiers answer to no country.
After reflecting on their shared past, Big Boss switched off Zero's life support. As Zero struggled to breathe, Big Boss pressed his hands over Zero's heart, ending the life of the man who had once been his friend and putting an end to the organization's dictatorship.