Regardless of which visa you have when you switch jobs, your new employer will likely need to petition you for a new nonimmigrant work visa before you start your new role. Be mindful about maintaining your status by legally working and receiving pay stubs before you change your status to the future company so that you can remain in the U.S. for the switch and keep any future green card applications safe.