A spouse visa permits you to enter the U.S. as a spouse. You thus must obtain it before you enter the U.S.