Hope this is the answer you want.
A cell membrane has 2 functions, first, a barrier that keeps the constituents of the cell inside and take out any unwanted substances. Second, to allow the transport of nutrients into the cell and movement of waste products.