Do anti deficiency laws pertain to refinanced first mortgages?

According to the Anti Deficiency laws, anti deficiency laws applies to the refinanced first mortgage as long as the property is used as a primary residence of the purchaser.