Assuming your boyfriend is a U.S. citizen, no you will not need to leave the country. You will be able to initiate the green card process after marriage. As part of the process, you can request employment authorization. You can read more about adjustment of status at http://myattorneyusa.com/adjustment-of-immigration-status.
Answered on Nov 14th, 2016 at 2:17 PM