Yes, vintage Apple products are still eligible for repairs, but repairs are based on parts availability. A product loses all hardware service when it becomes "obsolete," which happens when Apple stopped distributing it for sale more than seven years ago.
The iPhone X was discontinued by Apple on September 12, 2018, following the announcement of the iPhone XS, iPhone XS Max, and iPhone XR devices.
An Apple product is considered "vintage" when Apple stopped distributing it for sale more than five years ago, but less than seven years ago. Vintage products may still be eligible for repairs, but it depends on parts availability.