Grieving while pregnant

Has anyone gone through a death while pregnant? Did you and baby turn out ok? I'm 8.5 months along and worried since I just found out my brother died.