Could my belt on car be bad or something else 2012 Honda accord lx s?

Keep smelling a burning smell coming from car. Checked oil and it's gd! Check engine light has come on, taking it to auto part store tomorrow when it opens. Car also making a knocking noise, but I turned a/c on and back noise stop so thinking it's the belt

A mechanic troubleshooting the problem will give you the correct answer. Something could be shorting.

No one can figure out what the problem is sitting at their computer. For this, it would have to be seen.