Parents Gave me ‘Broken’ Microwave, Easy fix?

My parent’s microwave was arcing (looked like an electric chair scene in a movie, it would buzz loudly and spark/light would emit from the microwave) so they got a new one. I took it in and notice this piece that has a hole in it and appears burned. If I replaced this piece, would it fix the microwave? Second pic shows where I took it off from. Any help is appreciated, thanks!