Hifikepunye Pohamba was succeeded as President of Namibia by Nujoma in 2005 .
Hifikepunye Pohamba was replaced by Nujoma in 2005 as President of Namibia .

Do these sentences mean the same thing?
yes