After using the Irreligion, even if you cancel it later, you won't be able to pick a religion. It's completely permanent unless you pick the other civic and have the game change your religion for you.