In a cell, what is the function of the cell membrane? It controls the entry and exit of substances. It removes waste and stores ingested food. It generates energy for the cell. It only maintains the cell shape.