Do stand up comics write all their own jokes?

Paul Mooney wrote for Richard Pryor. It makes me very glad to know that Richard was spending money on something other than cocaine during the 70s.