It depends on whether there's a transmission path from the sound source to your eardrum through a physical medium, and whether the physical medium will dampen the vibrations to below your hearing treshold.
So the answer varies based on where and when in space you and your sound source is located. Other factors may also play in, like how loud the noise is, or if you're deaf.