HF sonar doesn't give away your position in DW. Not sure what the RL consequences are/might be. I can tell you though that if you're close enough to get an HF contact on another sub he can certainly hear you. Unless of course he/she is not paying any attention to their sonar.