Yes earplugs and ear protectors are very useful. There's a couple of dudes working near to me who I could cheerfully throttle for the loud, stabbing effect of their voices, and rather than get dragged away screaming for justifiable homicide, or simply saying "excuse me gentlemen, but could you keep your voices down a little? It's playing Old Harry with my concentration" (which for some reason I find almost impossible to do), I've taken to wearing extremely conspicuous ear protectors - bliss! Time was when I'd have worried that people will think me nuts for doing that, but I'm past caring.
Trouble is, the plugs and ear protectors get uncomfortable after a while, but with judicious use I get a lot of benefit out of them. There's also a guy who plays a radio in a side room, and I find it embarrassing to hace to keep poping my head round the door and asking him to turn it down (the effect of my polite requests doesn't last long), so the ear protectors are a great help there, and there's also a noisy machine I sometimes switch on to drown him out - I'm fairly tolerant to most machine noises as long as they're continuous - rumbling, hissing, steady motors, etc., rather than bells, whistles or sirens - and they're very useful because I can leave them running for hours, and nobody seems tohave noticed that the said machines have nothing directly to do with the tasks I'm actually performing. I've also used various home-made mp3 sound files which I design to effectively mask the external noise pollution that enters my home from insensitive neighbours and passing motorists. Luckily I have an obsessional interest in music and sound engineering, which really pays off.
I agree hygeine is of some concern with plugs - I prefer clean bits of tissue paper, which seem to offer better attenuation than these modern foam plugs - another health issue to watch is that excessive insertion force can damage the eardrum. I suspect the makers of those foam things have traded off attenuation for safety - i.e. they're designed for idiots like so many modern commodities are, as a back-covering exercise in case somebody sues them.