Endure constant grievances

So is it worth it to endure constant grievances in an unlucky marriage solely for the sake of the child? It can be better to enjoy motherhood and grow your child in a happy and calm atmosphere, even without a father.