Do we have to be married?

My boyfriend wants to join the army, we have a baby coming in November. Do we have to be married to live together on-base?