Generally wait
The core game is not especially graphic, but independent play asks a lot of a 5-year-old: 3D navigation, inventory management, reading, planning, and recovering from mistakes can quickly become frustrating.
Best setup: If the child is interested, use short parent-assisted Creative-mode building sessions rather than treating Minecraft as an independent game yet.