The cell membrane, or plasma membrane, surrounds and protects the internal environment of a cell; however, this is not its only function. A cell membrane also determines what materials enter or leave the cell. This ensures that the cells will be able to get rid of wastes and take up important nutrients and gases.