The answer is yes, but you need to be careful.
The H-1B visa is a non-immigrant visa that allows an alien worker to work in the U.S. for a specific period of time. The visa is granted to foreign workers who are qualified to perform a specific job. H-1B visa holders are allowed to work in the U.S. for a period of up to six years.