If body piercing and tattoo infection is severe, does the patient need to have a surgery?

Potentially. In some situations - if not responsive to antibiotics and other more conservative measures.
Infection. Not usually. The infection should be cultured and appropriate antibiotics given. If there is an abscess, it may need to be drained. If the organism is not killed by antibiotics the management plan would have to change.