Yes! When it comes to publishing modules and adventures for DnD, Wizards of the Coast has a more open license, which, as long as you adhere to it, means you can sell your modules. Popular ways to sell DnD modules is as PDFs on websites like DriveThruRPG and DMsGuild.