If you are granted an NOC from your present company, you could join another company or come back to qatar anytime. The "No Objections Certificate" states that your sponsor has no objections to you joining another company, therefore no 2 year restriction, which is purely applicable to those not granted the NOC.