An M1 visa is for vocational or non-academic studies. An F1 visa is for academic studies.
Lots of students marry U.S. citizens and successfully adjust their status. However, as I know absolutely nothing about your situation other than that you have an M1 visa, I have no way of predicting what will happen in your case.

