Yes for sure, this is required when ever you will leave or cross the qatar border. So must get it before reporting to airport immegration or boarder immegrations.