Can You Play as Roxas Throughout Kingdom Hearts II?

Not in an unmodified copy of the game. Roxas is playable only in the opening prologue, the simulated Twilight Town sequence, and then not again for the rest of Sora's story.

If you want him for the whole game, the route is a cheat device. Action Replay and CodeBreaker codes for the PlayStation 2 version exist and are catalogued on code sites such as Neoseeker's, where you will find character-replacement codes for Roxas and several others. Load them through your device before booting, and the swap takes effect in-game.

Be warned that character swaps of this kind are frequently unstable. Scripts assume Sora, so cutscenes can break, animations play oddly and the game occasionally soft-locks. Emulator users tend to have an easier time of it than people on original hardware.

One note: if you see an old answer to this question inviting you to email a personal address for help, ignore it. That is not a support channel.