The general rule is that you cannot roll over a 401(k) until you leave the job or retire. But some companies may allow in-service rollovers, where you can move your 401k funds to an IRA while still working with them.