Yes, it can. But infections by
harmful organisms is very difficult to achieve. The common spoilage organisms in beer are all harmless to humans. Here's a good overview
http://mmbr.asm.org/content/77/2/157.longJust the hops alone stop pretty much all gram-positive bacteria except Lactobacillus and a few other harmless ones.