No. Zach Braff does not appear in Zathura: A Space Adventure (2005).
Braff was starring in Scrubs (Season 5) and directed/wrote/starred in Garden State (2004). He has no connection to Zathura.
Possible confusion: Both films feature young male leads in fantastical situations, but different actors, directors (Jon Favreau), and tones.