As long as you have receipts for the parts, with VIN numbers from the donor trucks and those VIN numbers are not logged in as stolen, you'll be fine.
On a full cab replacement in Michigan, they will actually assign the truck a new VIN. Not sure about NY. But they know the replacement cab is...