so they don't have to lay eggs if they don't want to?

I was worried because my aunt is a vet and she told me about a girl who came in with a budgie and the egg was stuck. so i wasn't sure.. Thank you for answering my question