You think? Or are you sure? It is important to know exactly what you did, so you know what your options are. Please don't make any more big decisions without fully understanding the consequences.
Yes, if you are able to visit (on a tourist visa or VWP), you can visit and get married. Then you can start the CR-1 process, go home to finish your studies, and by the time you graduate you will start to get close to having your interview at the consulate.