Deductions & credits

What if the organization pays a salary to the founder? Is it still favorable to donate to your own non-profit then?