You can transfer, but it must be with the same company or an affiliate. In addition, you must notify USCIS of the change. If you want to change to a different company altogether, you must obtain a different status under a work visa. If you lose your job, then you will need to leave the U.S. Discuss with your lawyer your other options for obtaining a work visa if this is your case.