If the girl is 18, she's a legal adult and can make her own decisions. So, yes, she could move in with you, bring her baby and her mother cannot prevent her from doing so.
You are to be sincerely commended for wanting to held the girl finish school. The mother is either caught in the thrall of ignorance or not very aware if she's encouraging the child to drop out.