You do not have an automatic right to remain in the home. You may be able to apply for a court order that allows you to stay in the home for your child's benefit.
If your ex-partner owns the property, you may, in certain situations, have an interest in the property. This is a very complicated area of law, and you will need specialist legal advice if you think it applies to you.