Hi,

If your Visa Expires while out of the country, then to come back to Doha you would need an NOC from your current employer/sponsor.
So it would be advisable to you that in case you are resigning and going out of the country, plz take your NOC from your current employer.
And yes you can go to any country in GCC. However, to come back to Qatar NOC is needed.