is marriage important

I wanna marry my boyfriend & we have talked about this but i also wanna move in with him. Does moving in with your partner before getting married a bad idea?