Not necessarily. You can get married in another country and then start the process of the spouse VISA. Just keep in mind that in the meantime the non-US will wait in their country until the process is completed.