You can marry as a tourist.
You mean, can you stay with your new husband during the duration of your stay as a tourist, before you go home? Of course.
If you are asking about petitioning to adjust your status that promptly after entering as a tourist, with a prior history of being turned back as having apparent immigrant intent, you're playing with fire. I suggest seeking a fiance visa.

