You can do whatever you want for the whole of your life so long as you repent on your deathbed, and truely mean it Or failing that, just leave everything to the church.