5 years in relationships

Will you still continue the relationship if you're no longer happy but there is a child involved?