I learnt a few extra tidbits of French when I played FFVIII in French, but only because I had been studying it for six years. Plus I had an awesome bilingual dictionary.

I guess it would help you to recognise the forms of written Japanese language, and you would learn some colloquial phrases peculiar to Japan. But no, you certainly couldn't learn Japanese from scratch from video games alone.