These days, most drains are made with PVC or ABS plastic. Plastic drain fittings are usually glued, but the ones you might need to remove temporarily, like cleanout plugs, are threaded.
If your fittings have been fused together with PVC glue, also known as PVC cement, you may find it tricky to separate them in the future. Here's what to try.