Content sharing plugin territory?

Can content(social) sharing function be embedded in the theme itself?

Or do we have to put it in a plugin?