Yes...he can come cack. It is a normal pocedure that previous or current company will cancell the visa sponsored by them. After cancellation, employee must secure an NOC from that company and he has to give it to the new company.
Somehow, he might not get out of the country because if the visa will be cancelled by the previous employer, they will have to notice the bank also. The bank will definitely file a HOLD point unto the person who is living Qatar with a bank loan. Therefore he will be offloaded in the airport by the immigration.