No, you won't be blocking the noise of an ambulance with noise-canceling headphones, that's not how noise-cancelling technology works. They only block persistent sounds, which an ambulance siren isn't as it changes pitch rapidly.
edit: this makes me wonder about deaf drivers... what is the intent of the law here?