Will it get better? Attachment in pregnancy

To the experienced mums, I’m 20w pregnant with my first. She’s very active but I don’t seem to feel a strong connection to her. Will this get better after she is born? Did anyone else have detachment worries during pregnancy that faded away after birth?

I’m married and my marriage has been pretty up and down lately and has definitely been stress tested. I dunno if it’s just that or not but I worry I will not be a great mother. My mother really wasn’t much with me. I’m worried about inheriting her mess ups.

Please be kind.