As long as the seller purchased from an authorized DJI dealer, you'll be able to use the remainder of the DJI Warranty if you have a copy of the original sales receipt.
The DJI Warranty is good for 1-year from the point when the original owner purchase the Mavic. Some parts are covered for less than a year. See the full warranty details here.