In the state of Kansas can a 17 year old female have a child and marry a 21 year old male
Yes, unless her parent or guardian objects. If that happens, she might need to seek emancipation.
Good luck