As someone who is the Treasurer/Secretary of a 501(c)(3) non-profit I can tell you that is it always possible for a non-profit to bring in more revenue than it costs to run the non-profit. You can also pay salaries to people out of your revenue. The IRS has a bunch of educational material for non-profits[1], and a really good guide to maintaining your exemption [2].
[1] https://www.irs.gov/charities-non-profits/publications-for-e...
[2] https://www.irs.gov/pub/irs-pdf/p4221pc.pdf