If you are married and filing separately, only the spouse who incurred the moving expenses can claim them, provided they meet the eligibility requirements.