which way? do you mean in and out, or more easily up/done or side/side?
in and out (or away from the bulkhead) is possible by changing the rod length from pedal, but would need to be rigidly mounted.
one of the other directions is relatively easy. you would just need new mounting holes (or elongated). the rod from the pedal will be ok at a slight angle at the pedal end. not sure what this will do at the master cylinder end though, may put undue stress on something like a seal and start leaking.
it's been a while since i had my master cylinder out and i can't remember exactly how it all goes together