If you find your chain pulling to one side or another, stop what you are doing and check the teeth before continuing to work.
Chainsaws can make crooked cuts for a variety of reasons. Check your chainsaw's chain and bar to ensure they're in proper working order.
Uneven cutting teeth or a bent bar can cause your saw to bite to one side or another while cutting.