Hard time difficult pregnancy

Has anyone else had a difficult pregnancy and feels like it's hard to get attached to the baby as In all this bad stuff has been happening and you're just scared of it all being ripped away?