Once you have an executed signed purchase agreement (PA) you can lock-in a mortgage rate. Be sure to select a lock-in period that will be long enough to close on your new home.