A mother won't eat their own young the way livebearers do, but they don't protect them either. Any other fish in the tank, including the father, would gladly eat them.
You can use a breeding trap temporarily, but you will need something much bigger if you actually want to raise the fry. Set up a fry tank and you can place the mother into that as well. Since the mother herself won't eat her fry, you don't need a 'trap', you just need her secluded from the other fish. Once she spits (releases the fry) you can put her back into the main tank at any time.