One of its jobs is to control what enters and exits the cell and thereby to protect the cell. ... Sometimes carbohydrates (sugars) are attached to cell membrane phospholipids and to cell membrane proteins. A selectively permeable (sometimes called semi-permeable) membrane allows some molecules across but not others.
Hope this helps :)