Can I use 4" CPVC pipe to extend a dryer vent in my garage?
No. It has to be rigid metal pipe in the wall. Plastic pipe is a fire hazard.
Note that you cannot use screws to attach together metal pipe for dryer vents; lint can collect on it and become a fire hazard.