If you are almost 18 but became pregnant when you were 17 could your 18-year-old boyfriend get into trouble with authorities?

Depending on the age of consent in your state and that of your family. If you family wants to take it further they could, if your states maturity age is 18 because you obviously conceived under 18... Check with your state or county court house and asked the legal age of maturity.