removing metal bar that holds headlights

ok i had an accident damaging my front head and i got it pulled out. its decent but its not perfect. i heard from a friend that you could just grind out the welds and and replace it. the reason i ask because im getting one for free if i can take it off a wrecked teg. can i do it? will it mess anything else up?