You can bet if they had possessed one in 1941, they sure as hell would have used it. Why wouldn’t you use the most powerful weapon you have?
They did. The Japanese developed a shallow running torpedo that worked in Pearl Harbor. I believe at the time, the U.S. thought that Pearl Harbor was too shallow for air dropped torpedo’s to work.