Married at 18?

Is it ok to marry my boyfriend when we are both 18? We’ve been dating over 4 years