It is not essential. I know people who had valid visa for saudi and still they could enter in Qatar.