It doesn't violate immigration laws to marry a U.S. citizen. The issue is where you claim to be entering with no immigration intent (e.g., as a tourist) then get married and try to adjust your status based on the marriage. If you leave as promised, nobody cares that you got married as a tourist, and you can attempt to reenter on a spouse visa.
You can apply for whatever visas you are qualified to apply for.

