I think they would. I've been in gun shops since I was old enough to walk. They won't let you buy a weapon or ammmo, but ear plugs can be bought by anyone.
Drug store ones should work too. It's just the gun ones are designed to protect the ears so they're very good at blocking regular sounds. Not that all night parties are regular.
Maybe try the library for studying? Or even sleep.