Usually, not. The law states that any gifts used to help purchase property deemed the matrimonial home cannot be given back to the spouse who received the gift. This is also true if inherited money was used to purchase the home.
This law can be challenged in court by claiming “unjust enrichment.” You will be required to show that your parents’ gift unjustly benefited your spouse.