If your girlfriend turns out to be pregnant, and wants to move to your home to avoid the smoke in her own home, you and your girlfriend would need to go to court first. She cannot just move in with you without her parents' consent.
New Jersey has a Juvenile Family Crisis division, that deals with family problems such as the ones you and your girlfriend may face. You can, and probably should, contact the Juvenile Crisis Intervention Unit for assistance. The JCIU can make a determination about home placement, based on the best interests of your girlfriend (and baby), and could potentially arrange for your girlfriend to live away from home, if living with her parents is detrimental to her health or the health of the baby. Without obtaining a court order for emancipation, however, she will probably need to live in an adult-supervised setting.
Both she and you are responsible for the support and care of your child (her parents are responsible only for your girlfriend and not for your baby), and you have the right to make decisions on your own child's behalf, including how the child will be raised. Your girlfriend can receive financial help, during her pregnancy and later to help care for the child, through Temporary Assistance to Needy Families (TANF), but only if she lives in an adult-supervised setting, such as with her parents, until she is 18.