Help me understand

My ex said that he doesn’t feel comfortable buying anything for my Baby until she’s born and we do a DNA test. He said he wants me to save all receipts and if the test said the baby Is his then he will give me half of what Ive spent and help out with my baby. Is this right.