Just found out I’m pregnant yesterday and it’s not planned

We used birth control , they didn’t fail us for nearly two years and boom now I’m pregnant. We are both in shock my partner is mad and confused and I’m confused. But I know I want to keep the pregnancy. Did it happen to anyone else and there relationship survived ?