Can a 17-year-old get married to an 18-year-old if she is pregnant and her parents will not permit her to see him?

Need more info is the She 18 or 17 and what state?