Yes, you can use a single task sequence to image different hardware models in a Microsoft Deployment Toolkit (MDT) or System Center Configuration Manager (SCCM) environment. Task sequences are designed to be flexible and accommodate various hardware configurations and deployment scenarios.
Kindly go through the following Microsoft reference article: