Okay to shift toilet a couple of inches?
Unless your toilet is a fully self contained unit, such as chamber pot, it will be connected to plumbing. There will be the water line that brings water to fill the flush tank and then there will be the large diameter drain pipe that comes up through the floor and seals with the bottom of the toilet stool. 

An arbitrary movement of the toilet unit will involve these plumbing connections so either you or a plumber will have to deal with the changes.

There is one specific thing that may be possible that would minimize the overall amount of plumbing impact. If you were to plan to simply rotate the toilet stool directly in line with the centerline of the drain pipe connection in the floor then all that would be needed there is a cleaning of the bottom of the stool and flange. You would then seat the toilet on a new wax ring or other new fangled rubber seal. 

Rotating as described above will change the position where the water fill line engages the bottom of the flush tank. It that is currently plumbed with a rigid fixed position pipe then it will need to be redone. Replacing with a flexible stainless steel braid jacketed connection hose would make reconnection easy.