As long as you are obeying the plan, you can do this. That means not just paying the amounts due under the plan (though, of course, you have to do that), but also complying with whatever the plan may say about disclosing additional funds that become available to you to the court, using those funds, etc. If you stay in compliance with the plan, you may purchase the house.