For most species, usually their parents won't take care of their offspring (if) the new born can take care of themselves.
That is why live bearer fish, the fish species that give birth directly to fry that are capable of free swim the moment they were born, will not take care of their young. Cichlids, Gourami, are both egg layers. Their fry won't even be able to swim a few days after hatch from their eggs. They require extensive care from their parents. Cichlids will pair up and both the male and female will defend their nest and young. For gourami, only the dad takes care of the nest and offspring.
New born mammals and birds can't take care of themselves. It is why they require care from parents in the first place.
So whether or not take care of their young is largely depended on the ability of the new born themselves.