Yes, but you can also get infections from piercing guns (which I would NEVER recommend the usage of) and anything else that requires you to stick a needle in your body.

That's why you go to a reputable tattoo or piercing artist. Someone who is gonna use brand new needles. Oh, and when someone marks you, make sure they do it with a toothpick and not whatever the ink actually sits on. Autoclave, etc.