Yes. A nonprofit corporation can take in more money than it spends. It can use the tax free profits for its own operating expenses including salaries. What a nonprofit corporation cannot do is distribute any profits to officers, directors or employees.