Is it necessary to do a pilot study for the sample size calculation for any research?

Most of the researchers do sample size calculation from review and literature. Is it acceptable?