Accepted a position at a nonprofit, will I be stuck in the nonprofit sector?

Hello, I recently accepted a position at a non-profit catholic charity as a staff accountant with 2 years’ experience. This position has a better salary, better benefits package and better mentor program than my previous position. My question is if I take this role, will it be impossible to transfer back into corporate accounting later in my career? I plan on taking and passing the CPA exam within the next 1-2 years. I am asking mainly individuals who have actually done or attempted this, not people who only have an opinion on the matter. Thanks.