Quick question

If you had covid at 16 weeks pregnant is you’re baby still born with antibodies ? or is that only if you get covid again or the vaccine ?