I don't want to sound critical but this situation doesn't sound too good. I would think you need to find some assistance to continue school, get a job (if you don't have one) this is going to be a rough time. I was 17 pregnant 18 married. I would never tell someone to go get married, or have a baby to keep a guy. A baby runs a guy off faster than anything. Your bf is an older illegal immigrant, whom you seem to have a shaky relationship with. I wish young girls knew how hard is it to raise a child with or without the father, there would be many more legs closed !!
It's going to be nothing but hard work for you but you can do it. Get as much assistance as you can(i'm not a fan of gov. Assistance i.E welfare)
but help is help. My husband joined the navy and it was he best decision because we are able to take good care of our baby, without ever taking a handout from family, always had our own money,apt/home,car,travel,insurance. Everything we need, though military is not everyones choice. So there are things you can do keep your baby if thats what you want to do, having a child is a life altering thing some people think it's just a cute thing to do(have a little baby). It's hard work, and reality sets in fast ! I wish you the best.