He left at 36 weeks pregnant

It’s been over 2 weeks now since my boyfriend now ex left us, this is just showing he doesn’t care about the baby he created, should I call him to tell him when the baby’s born to go through the courts or shall I just not call him and see if he try’s to see his baby when born, moping round now for over a week, I can’t deal with this, how can he leave us like this