My chainsaw does not cut straight, is it there a problem with the bar?

Predominately this problem is with the cutting chain, if it is incorrectly sharpened or dull/blunt more than the other side, it will cut towards the sharpest teeth of the chainsaw cutting chain.