Yes you can. before you leaving Qatar you have to request for Reentry from Ministry of interiors.

Regards,
SM