Can a 21-year-old get in trouble for helping his pregnant 17-year-old girlfriend cross state lines to marry?

Well, it doesn't appear to be a violation of the Mann Act of 1910.

...transporting any individual, ...for the purpose of prostitution or sexual activity ...transportation of minors under the age of 18 years ... provides for an enhanced penalty.

See also emancipation;%20description

heaps of people have done it so i dont think it would be a problem good luck