Is it a good idea to switch from fortune 500 company to government ?

I currently work for a fortune 500 company. Is it a good idea to switch to government Not-for profit organization. I'm wondering if I work for a government for a couple years, would it be difficult to find a job in private industry, not sure if the government accounting experience will be counted / benefit ? Thanks a lot.