ATP also plays a critical role in the active transport of macromolecules across cell membranes , e.g. exocytosis and endocytosis . ATP also plays a critical role in the transport of macromolecules across cell membranes , e.g. exocytosis and endocytosis .