Can I Use 4" CPVC Pipe for a Dryer vent?
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.