Yes, if the marriage is bona fide.  Then you will be able to petition your spouse right away for a green card and he/she will be able to apply for the green card right away on the basis of that petition (the two petitions can be filed concurrently)