Any site that is visited by many users can potentially earn money. It does not matter the “engine” of the site. Therefore, forums with high attendance can do this. And Discourse is no exception.
The software is an important point, but IMHO, it is not decisive. I think the correct strategy lies at the junction of many moments and implies the correct direction of movement in different areas. But also in the software.