Yes, that's called braille, not morse code. And also, not all deaf people know it, in fact, very few people outside the military know it, and it's useless to deaf people, because most morse code is expressed in sounds, so there's not really a reason to learn it.