Yes, it is possible to come to Qatar and then leave and come back on the same visa.. You need to apply for an exit visa by paying a fee..