In 35 years of writing code, I have taken advantage of plenty of modules and libraries written by other people. It is part of what makes programming so fantastic. You never have to reinvent the wheel unless you really want to.
Despite that, I have never contributed a module myself. The excuse is that it would take a lot of time to make my modules available to others.