Yes, except all warranties are void if vehicle was declared a total loss (or should have been) due to collision or comprehensive damage and was then subsequently repaired.
Yes, the original factory warranties go with the vehicle, not the owner. Extended warranties go with the purchaser, but can be transferred to the new owner, if the proper paperwork is done timely.