It depends. Federal law requires most hospitals to provide emergency services, regardless of whether a patient is insured. Generally, emergency staff is only required to stabilize a patient in these conditions.
However, this law is limited to facilities that receive Medicare payments from the federal government. Private hospitals often have no requirement to treat you even if you’re suffering an emergency.