Yes. A person with a valid residency permit can stay outside Qatar for more than 6 months by paying QAR 500/- at the airport immigration office.