Radically changing your lane position near an intersection where you do not intend to turn is unsafe.

When encountering an intersection where you do not intend to turn, you should not radically change your lane position. Other drivers may think that you are about to turn and may enter your lane.
DMV Writen Test