Nonprofit corporations, by definition, exist not to make money but to fulfill one of the purposes recognized by federal law: charitable, educational, scientific, or literary. Under state and federal tax laws, however, as long as a nonprofit corporation is organized and operated for a recognized nonprofit purpose and has secured the proper tax exemptions, it can take in more money than it spends to conduct its activities.
In other words, your nonprofit can make a profit. Whether or not that income is taxable depends on whether the activities are related to the nonprofit’s purpose. This is called Unrelated Business Income Tax or UBIT.