The female can lay eggs without the male, but they aren't viable which is why the female eats them. There needs to be a male to fertilize them. She will lay eggs whenever she's gravid.
Even if you get a male, there's no guarantee they will spawn together and he will fertilize the eggs.
What type of cichlid(s) do you have?