Yes, you can buy a car from someone who left the country. The car owner, on his behalf, needs to authorized someone in Qatar for the bank and Traffic Dept. to sell his/her car.