1999 Dodge Dakota Club Cab

Can the mechanic ruin the transmission when replacing the engine with a used engine? We were told the engine was shot. After replacing the engine with a used engine, the mechanic says the transmission is shot now. We had no warning that there was anything wrong with the transmission.