While that is an option, you might want to think twice.
If your transmission had been working well until now, there was no reason to think that it was going to have a problem until it occurred. That’s the same thing that an automotive wrecking yard will think when they purchase a wrecked vehicle. If the transmission was working well, the transmission would be placed in their inventory, and when someone needed a transmission, it would be sold as a serviceable unit.
If your vehicle was sold to a wrecking yard a month prior to the appearance of the current problem, the transmission would develop a problem about a month after it was installed. Not only will this require additional labor to remove and install a replacement unit, the next unit may not last as well.
That’s assuming another unit for your vehicle is available. These days, transmissions are more specific to a year, make, and model than they were a few years ago.
So, what to do. The used transmission option is the cheaper assuming that it’s a serviceable unit. But, if you are going to keep the vehicle for the next several years, a rebuilt unit should be more reliable and a better warranty.
The facility that installs the used unit will probably charge you each time a unit is installed. In other words, if the first unit is no good, expect another installation charge for the next one. That’s assuming the supplier has another unit. You might ask about the supplier’s return policy.
Another reason to consider, is whether the “transmission problem” is actually in the transmission. With today’s computer controlled units, there are numerous electronic sensors, external to the transmission that can be responsible for the current problem. Also, another reason to have the symptoms diagnosed by a transmission professional.
I’ve had vehicles towed into our facility, and was told that the owner had replaced the transmission only to still have the same symptoms!