Yes, you can marry a U.S. citizen while on an E2 visa. However, doing so does not automatically grant you permanent residence. To obtain a green card through marriage, you must go through the appropriate application process and meet the requirements.