The baby will not be born with a cold. You are helping build your child's immunity against that cold by being sick now. Even if the baby were to be born today, they would at least have some of the antibodies against that specific strain because they inherit a passive immunity through the placenta that will last for the first few weeks/months of life. This is also why it is recommended for the mother to receive certain vaccines each pregnancy - to hold the child over until they are old enough to receive the vaccine themselves.