Ode to Joy is a subtitle given to his Ninth Symphony, which happened to be the last one he wrote. So yes, he was deaf, completely deaf, which makes his masterpiece seem even more spectacular--it is...
"Ode to Joy" in it's basic sense is a straightforward four-voice chorale, although in Symphony #9, Beethoven does some remarkable things with it (including a double fugue).