Yes, if Sonny does not pay , he should sell the house and lot for P1,000,000 to Joy. The agreement is not contrary to law.