could we move in together?

if me and my boyfriend got pregnant could we get married and move in together? I'm almost 17; he's 18.