There's nothing stopping you from actually getting married.

However, you might run into problems adjusting his status (I'm assuming that's your intent, yes?) afterwards.

Edited: I just read your other thread. Can you afford to sponsor his residency? Do you understand what that entails?