The answer is yes, the source of the obligation would be a quasi-contract. In a quasi-contract, there is an agreement between the two parties without preceding obligations to one another that has been made and lawfully recognized by the court. In a quasi-contract, neither involved party is predictable to create such a contract; this contract is decided and obligatory by a judge to correct a condition in which one party obtains somewhat at the expenditure of the other party. In the principle of the quasi-contract, no one should be gaining and the other party is losing, so the party that gained should pay the right compensation so no one is unjustly enriched.