Plastic drain fittings are usually glued, but the ones you might need to remove temporarily, like cleanout plugs, are threaded ... PVC or CPVC pipes to copper, cast iron pipes to ABS or galvanized ...
For easier installation, be sure to also buy pipe thread sealant formulated for plastic. Installing a valve in a plastic drain is usually a quick, hassle-free job. But cast iron drains can be ...