How does the cell membrane control what comes in and out of the cell?

The cell membrane contains pores that let all molecules in and out of the cell.
The cell membrane does not let anything in or out of the cell.
The cell membrane contains small pores that filters in needed substance and filters out waste product.
The cell membrane does not let substance in or out of the cell.